From 3f4ee51dbecfd70fde93052d400c5ae665fdbd60 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 10 Feb 2004 10:29:49 +0000 Subject: [PATCH] From aegypten_branch: Add a button to trigger a backend rescan on the Crypto Plugin tab. svn path=/trunk/kdepim/; revision=286726 --- configuredialog.cpp | 13 +++++++++++++ configuredialog_p.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/configuredialog.cpp b/configuredialog.cpp index 7ff862c26..22bb9de39 100644 --- a/configuredialog.cpp +++ b/configuredialog.cpp @@ -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... +} // ************************************************************* // * * diff --git a/configuredialog_p.h b/configuredialog_p.h index 279d0dc0c..6ffa02e83 100644 --- a/configuredialog_p.h +++ b/configuredialog_p.h @@ -716,11 +716,13 @@ public slots: protected slots: void slotPlugSelectionChanged(); + void slotRescan(); private: KListView *mPlugList; QPushButton *mActivateButton; QPushButton *mConfigureButton; + QPushButton *mRescanButton; QLineEdit *mNameEdit; };