port C++ code to Qt5
This commit is contained in:
@@ -132,7 +132,11 @@ DlgCustomToolbars::DlgCustomToolbars(DlgCustomToolbars::Type t, 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
|
||||
|
||||
labels.clear(); labels << tr("Command");
|
||||
toolbarTreeWidget->setHeaderLabels(labels);
|
||||
|
||||
Reference in New Issue
Block a user