mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
construct the QLayout for the child widget with the correct parent
This avoids a warning from qt about the widget already having a QLayout.
This commit is contained in:
parent
e3f8abed6f
commit
cbb426b5f2
@ -36,7 +36,7 @@ QgsScaleVisibilityDialog::QgsScaleVisibilityDialog( QWidget *parent, const QStri
|
||||
mGroupBox->setCheckable( true );
|
||||
mGroupBox->setTitle( tr( "Scale visibility " ) );
|
||||
|
||||
QGridLayout* gbLayout = new QGridLayout( this );
|
||||
QGridLayout* gbLayout = new QGridLayout( mGroupBox );
|
||||
//gbLayout->setContentsMargins( 0, 0, 0, 0 );
|
||||
|
||||
mScaleWidget = new QgsScaleRangeWidget( this );
|
||||
@ -45,7 +45,6 @@ QgsScaleVisibilityDialog::QgsScaleVisibilityDialog( QWidget *parent, const QStri
|
||||
mScaleWidget->setMapCanvas( mapCanvas );
|
||||
}
|
||||
gbLayout->addWidget( mScaleWidget, 0, 0 );
|
||||
mGroupBox->setLayout( gbLayout );
|
||||
|
||||
QDialogButtonBox* buttonBox = new QDialogButtonBox( QDialogButtonBox::Cancel | QDialogButtonBox::Ok, Qt::Horizontal, this );
|
||||
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user