@@ -1300,7 +1300,7 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
1300
1300
baseData->setLayout ( baseLayout );
1301
1301
QCheckBox* showLabelCheckbox = new QCheckBox ( " Show label" );
1302
1302
showLabelCheckbox->setChecked ( itemData.showLabel () );
1303
- baseLayout->addWidget ( showLabelCheckbox );
1303
+ baseLayout->addRow ( showLabelCheckbox );
1304
1304
QWidget* baseWidget = new QWidget ();
1305
1305
baseWidget->setLayout ( baseLayout );
1306
1306
@@ -1310,12 +1310,12 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
1310
1310
dlg.setWindowTitle ( tr ( " Configure container" ) );
1311
1311
QFormLayout* layout = new QFormLayout () ;
1312
1312
dlg.setLayout ( layout );
1313
- layout->addWidget ( baseWidget );
1313
+ layout->addRow ( baseWidget );
1314
1314
1315
1315
QCheckBox* showAsGroupBox = nullptr ;
1316
1316
QLineEdit* title = new QLineEdit ( itemData.name () );
1317
1317
QSpinBox* columnCount = new QSpinBox ();
1318
- QGroupBox* visibilityExpressionGroupBox = new QGroupBox ( tr ( " Control visibility by expression " ) );
1318
+ QGroupBox* visibilityExpressionGroupBox = new QGroupBox ( tr ( " Control visibility by expression" ) );
1319
1319
visibilityExpressionGroupBox->setCheckable ( true );
1320
1320
visibilityExpressionGroupBox->setChecked ( itemData.visibilityExpression ().enabled () );
1321
1321
visibilityExpressionGroupBox->setLayout ( new QGridLayout );
@@ -1330,13 +1330,13 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
1330
1330
1331
1331
layout->addRow ( tr ( " Title" ), title );
1332
1332
layout->addRow ( tr ( " Column count" ), columnCount );
1333
- layout->addWidget ( visibilityExpressionGroupBox );
1333
+ layout->addRow ( visibilityExpressionGroupBox );
1334
1334
1335
1335
if ( !item->parent () )
1336
1336
{
1337
1337
showAsGroupBox = new QCheckBox ( tr ( " Show as group box" ) );
1338
1338
showAsGroupBox->setChecked ( itemData.showAsGroupBox () );
1339
- layout->addRow ( tr ( " Show as group box " ), showAsGroupBox );
1339
+ layout->addRow ( showAsGroupBox );
1340
1340
}
1341
1341
1342
1342
QDialogButtonBox* buttonBox = new QDialogButtonBox ( QDialogButtonBox::Ok
0 commit comments