port C++ code to Qt5
This commit is contained in:
@@ -73,8 +73,12 @@ DlgParameterImp::DlgParameterImp( QWidget* parent, Qt::WindowFlags fl )
|
||||
paramValue = new ParameterValue(ui->splitter3);
|
||||
paramValue->setHeaderLabels(valueLabels);
|
||||
paramValue->setRootIsDecorated(false);
|
||||
#if QT_VERSION >= 0x050000
|
||||
paramValue->header()->setSectionResizeMode(0, QHeaderView::Stretch);
|
||||
#else
|
||||
paramValue->header()->setResizeMode(0, QHeaderView::Stretch);
|
||||
|
||||
#endif
|
||||
|
||||
QSizePolicy policy = paramValue->sizePolicy();
|
||||
policy.setHorizontalStretch(3);
|
||||
paramValue->setSizePolicy(policy);
|
||||
|
||||
Reference in New Issue
Block a user