Skip to content
Permalink
Browse files

Fix "Configure container" dialog (#4060)

  • Loading branch information
DelazJ authored and nirvn committed Jan 26, 2017
1 parent daa8709 commit e7ff727bb8ba1c7d0566db650cacb824c9c72d9c
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/app/qgsfieldsproperties.cpp
@@ -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 );

@@ -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 );
@@ -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

0 comments on commit e7ff727

Please sign in to comment.
You can’t perform that action at this time.