port C++ code to Qt5
This commit is contained in:
@@ -116,7 +116,11 @@ DlgCustomCommandsImp::DlgCustomCommandsImp( QWidget* parent )
|
||||
commandTreeWidget->setHeaderLabels(labels);
|
||||
commandTreeWidget->header()->hide();
|
||||
commandTreeWidget->setIconSize(QSize(32, 32));
|
||||
#if QT_VERSION >= 0x050000
|
||||
commandTreeWidget->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
|
||||
#else
|
||||
commandTreeWidget->header()->setResizeMode(0, QHeaderView::ResizeToContents);
|
||||
#endif
|
||||
|
||||
categoryTreeWidget->setCurrentItem(categoryTreeWidget->topLevelItem(0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user