Skip to content

Commit 23e2202

Browse files
DelazJnirvn
authored andcommittedMar 24, 2017
Backport some UI fixes to 2.18 (#4191)
* Set a name to the raster resampling dialog * Fix "Configure container" dialog
1 parent 5afdf6f commit 23e2202

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎src/app/qgsalignrasterdialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ void QgsAlignRasterDialog::runAlign()
380380

381381
QgsAlignRasterLayerConfigDialog::QgsAlignRasterLayerConfigDialog()
382382
{
383+
setWindowTitle( tr( "Configure Layer Resampling" ) );
383384
QVBoxLayout* layout = new QVBoxLayout();
384385

385386
cboLayers = new QgsMapLayerComboBox( this );

‎src/app/qgsfieldsproperties.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
13001300
baseData->setLayout( baseLayout );
13011301
QCheckBox* showLabelCheckbox = new QCheckBox( "Show label" );
13021302
showLabelCheckbox->setChecked( itemData.showLabel() );
1303-
baseLayout->addWidget( showLabelCheckbox );
1303+
baseLayout->addRow( showLabelCheckbox );
13041304
QWidget* baseWidget = new QWidget();
13051305
baseWidget->setLayout( baseLayout );
13061306

@@ -1310,12 +1310,12 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
13101310
dlg.setWindowTitle( tr( "Configure container" ) );
13111311
QFormLayout* layout = new QFormLayout() ;
13121312
dlg.setLayout( layout );
1313-
layout->addWidget( baseWidget );
1313+
layout->addRow( baseWidget );
13141314

13151315
QCheckBox* showAsGroupBox = nullptr;
13161316
QLineEdit* title = new QLineEdit( itemData.name() );
13171317
QSpinBox* columnCount = new QSpinBox();
1318-
QGroupBox* visibilityExpressionGroupBox = new QGroupBox( tr( "Control visibility by expression " ) );
1318+
QGroupBox* visibilityExpressionGroupBox = new QGroupBox( tr( "Control visibility by expression" ) );
13191319
visibilityExpressionGroupBox->setCheckable( true );
13201320
visibilityExpressionGroupBox->setChecked( itemData.visibilityExpression().enabled() );
13211321
visibilityExpressionGroupBox->setLayout( new QGridLayout );
@@ -1330,13 +1330,13 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem* item, int column )
13301330

13311331
layout->addRow( tr( "Title" ), title );
13321332
layout->addRow( tr( "Column count" ), columnCount );
1333-
layout->addWidget( visibilityExpressionGroupBox );
1333+
layout->addRow( visibilityExpressionGroupBox );
13341334

13351335
if ( !item->parent() )
13361336
{
13371337
showAsGroupBox = new QCheckBox( tr( "Show as group box" ) );
13381338
showAsGroupBox->setChecked( itemData.showAsGroupBox() );
1339-
layout->addRow( tr( "Show as group box" ), showAsGroupBox );
1339+
layout->addRow( showAsGroupBox );
13401340
}
13411341

13421342
QDialogButtonBox* buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok

0 commit comments

Comments
 (0)
Please sign in to comment.