21 #include <QDialogButtonBox>
22 #include <QPushButton>
29 tabWidget->setCurrentIndex( settings.
value( QStringLiteral(
"AuthCertEditorsSelectedTab" ), 0, QgsSettings::Section::Auth ).toInt() );
35 settings.
setValue( QStringLiteral(
"AuthCertEditorsSelectedTab" ), tabWidget->currentIndex(), QgsSettings::Section::Auth );
42 setWindowTitle( tr(
"Certificate Manager" ) );
43 QVBoxLayout *layout =
new QVBoxLayout(
this );
44 layout->setMargin( 6 );
47 layout->addWidget( mCertEditors );
49 QDialogButtonBox *buttonBox =
new QDialogButtonBox( QDialogButtonBox::Close,
50 Qt::Horizontal,
this );
51 buttonBox->button( QDialogButtonBox::Close )->setDefault(
true );
52 connect( buttonBox, &QDialogButtonBox::rejected,
this, &QWidget::close );
53 layout->addWidget( buttonBox );