Skip to content

Commit

Permalink
Fix "Configure container" dialog (#4060)
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nirvn committed Jan 26, 2017
1 parent daa8709 commit e7ff727
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/qgsfieldsproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
baseData->setLayout( baseLayout );
QCheckBox* showLabelCheckbox = new QCheckBox( QStringLiteral( "Show label" ) );
showLabelCheckbox->setChecked( itemData.showLabel() );
baseLayout->addWidget( showLabelCheckbox );
baseLayout->addRow( showLabelCheckbox );
QWidget* baseWidget = new QWidget();
baseWidget->setLayout( baseLayout );

Expand All @@ -1338,12 +1338,12 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
dlg.setWindowTitle( tr( "Configure container" ) );
QFormLayout* layout = new QFormLayout() ;
dlg.setLayout( layout );
layout->addWidget( baseWidget );
layout->addRow( baseWidget );

QCheckBox* showAsGroupBox = nullptr;
QLineEdit* title = new QLineEdit( itemData.name() );
QSpinBox* columnCount = new QSpinBox();
QGroupBox* visibilityExpressionGroupBox = new QGroupBox( tr( "Control visibility by expression " ) );
QGroupBox* visibilityExpressionGroupBox = new QGroupBox( tr( "Control visibility by expression" ) );
visibilityExpressionGroupBox->setCheckable( true );
visibilityExpressionGroupBox->setChecked( itemData.visibilityExpression().enabled() );
visibilityExpressionGroupBox->setLayout( new QGridLayout );
Expand All @@ -1358,13 +1358,13 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )

layout->addRow( tr( "Title" ), title );
layout->addRow( tr( "Column count" ), columnCount );
layout->addWidget( visibilityExpressionGroupBox );
layout->addRow( visibilityExpressionGroupBox );

if ( !item->parent() )
{
showAsGroupBox = new QCheckBox( tr( "Show as group box" ) );
showAsGroupBox->setChecked( itemData.showAsGroupBox() );
layout->addRow( tr( "Show as group box" ), showAsGroupBox );
layout->addRow( showAsGroupBox );
}

QDialogButtonBox* buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok
Expand Down

0 comments on commit e7ff727

Please sign in to comment.