TableWidget only used if -D TABLE_LAYOUT=yes compile option is defined

This commit is contained in:
Damjan Adamic
2015-12-07 18:03:30 +01:00
parent 1dcc660f31
commit 191e37f29c
6 changed files with 79 additions and 6 deletions
+2 -1
View File
@@ -126,7 +126,8 @@ LogicalSwitchesPanel::LogicalSwitchesPanel(QWidget * parent, ModelData & model,
disableMouseScrolling();
lock = false;
update();
tableLayout->getTableWidget()->resizeColumnsToContents();
tableLayout->resizeColumnsToContents();
tableLayout->pushRowsUp(firmware->getCapability(LogicalSwitches)+1);
}
LogicalSwitchesPanel::~LogicalSwitchesPanel()