28 if ( !title.isEmpty() )
30 setWindowTitle( title );
33 QGridLayout *dlgLayout =
new QGridLayout(
this );
36 mGroupBox =
new QGroupBox(
this );
37 mGroupBox->setCheckable(
true );
38 mGroupBox->setTitle( tr(
"Scale visibility " ) );
40 QGridLayout *gbLayout =
new QGridLayout( mGroupBox );
48 gbLayout->addWidget( mScaleWidget, 0, 0 );
50 QDialogButtonBox *buttonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel | QDialogButtonBox::Ok, Qt::Horizontal,
this );
51 connect( buttonBox, &QDialogButtonBox::accepted,
this, &QDialog::accept );
52 connect( buttonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject );
54 dlgLayout->addWidget( mGroupBox, 0, 0 );
55 dlgLayout->addWidget( buttonBox, 1, 0 );