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->setContentsMargins( 6, 6, 6, 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 );
Wrapper widget to manage available certificate editors.
QgsAuthCertEditors(QWidget *parent=nullptr)
Construct a widget to contain various certificate editors.
~QgsAuthCertEditors() override
Destructor: store last selected tab.
QgsAuthCertManager(QWidget *parent=nullptr)
Construct a dialog wrapper for widget to manage available certificate editors.
This class is a composition of two QSettings instances:
QVariant value(const QString &key, const QVariant &defaultValue=QVariant(), Section section=NoSection) const
Returns the value for setting key.
void setValue(const QString &key, const QVariant &value, QgsSettings::Section section=QgsSettings::NoSection)
Sets the value of setting key to value.