From aegypten_branch: Add a button to trigger a backend rescan on the Crypto Plugin tab.

svn path=/trunk/kdepim/; revision=286726
wilder-work
Marc Mutz 22 years ago
parent af546816d5
commit 3f4ee51dbe
  1. 13
      configuredialog.cpp
  2. 2
      configuredialog_p.h

@ -3476,6 +3476,14 @@ SecurityPageCryptPlugTab::SecurityPageCryptPlugTab( QWidget * parent, const char
connect( mConfigureButton, SIGNAL(clicked()),
SLOT(slotConfigurePlugIn()) );
// "Rescan..." button:
mRescanButton = new QPushButton( i18n("Rescan"), this );
mRescanButton->setAutoDefault( false );
vlay->addWidget( mRescanButton );
connect( mRescanButton, SIGNAL(clicked()),
SLOT(slotRescan()) );
vlay->addStretch( 1 );
}
@ -3624,6 +3632,11 @@ void SecurityPage::CryptPlugTab::slotActivatePlugIn()
emit changed( true );
}
void SecurityPage::CryptPlugTab::slotRescan() {
KMail::CryptPlugFactory::instance()->scanForBackends();
load();
emit changed( true ); // you never know...
}
// *************************************************************
// * *

@ -716,11 +716,13 @@ public slots:
protected slots:
void slotPlugSelectionChanged();
void slotRescan();
private:
KListView *mPlugList;
QPushButton *mActivateButton;
QPushButton *mConfigureButton;
QPushButton *mRescanButton;
QLineEdit *mNameEdit;
};

Loading…
Cancel
Save