QgsAuthImportIdentityDialog::QgsAuthImportIdentityDialog( QgsAuthImportIdentityDialog::IdentityType identitytype, QWidget *parent ) : QDialog( parent ) , mIdentityType( CertIdentity ) , mPkiBundle( QgsPkiBundle() ) , mDisabled( false ) , mAuthNotifyLayout( nullptr ) , mAuthNotify( nullptr ) { if ( QgsAuthManager::instance()->isDisabled() ) { mDisabled = true; mAuthNotifyLayout = new QVBoxLayout; this->setLayout( mAuthNotifyLayout ); mAuthNotify = new QLabel( QgsAuthManager::instance()->disabledMessage(), this ); mAuthNotifyLayout->addWidget( mAuthNotify ); } else { setupUi( this ); connect( buttonBox, SIGNAL( rejected() ), this, SLOT( close() ) ); connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) ); mIdentityType = identitytype; populateIdentityType(); } }
QgsAuthImportIdentityDialog::QgsAuthImportIdentityDialog( QgsAuthImportIdentityDialog::IdentityType identitytype, QWidget *parent ) : QDialog( parent ) , mPkiBundle( QgsPkiBundle() ) { setupUi( this ); connect( buttonBox, SIGNAL( rejected() ), this, SLOT( close() ) ); connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) ); mIdentityType = identitytype; populateIdentityType(); }