Skip to content

Commit c06ea3d

Browse files
committed
Expand factor option
1 parent 7f80fc2 commit c06ea3d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Interface/Application/NetworkEditor.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,17 @@ void NetworkEditor::setupModuleWidget(ModuleWidget* module)
375375
proxy->createPortPositionProviders();
376376
proxy->highlightPorts(Preferences::Instance().highlightPorts ? 1 : 0);
377377

378+
auto expand = Core::Application::Instance().parameters()->developerParameters()->guiExpandFactor().get_value_or(-1);
379+
380+
if (expand > 0)
381+
{
382+
qDebug() << "expand factor:" << expand;
383+
qDebug() << proxy->size();
384+
module->setFixedHeight(proxy->size().height() * expand);
385+
proxy->setMaximumHeight(proxy->size().height() * expand);
386+
qDebug() << proxy->size();
387+
}
388+
378389
scene_->addItem(proxy);
379390
ensureVisible(proxy);
380391
proxy->createStartupNote();

0 commit comments

Comments
 (0)