summaryrefslogtreecommitdiff
path: root/src/adblock/adblockmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-08-04 11:43:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-08-04 11:48:57 +0200
commit309cd39927b613c378346a29330333be727c2a99 (patch)
tree994c7b1b0f189eddb530c5d83688b9c6016ac9a9 /src/adblock/adblockmanager.cpp
parentaction to search with default searchEnine in marked text's context menu. REVI... (diff)
downloadrekonq-309cd39927b613c378346a29330333be727c2a99.tar.xz
Tools Action Menu
- Removed showDeveloperTools action - Moved adblock GUI to adblock part - renamed toolsMenu and developerMenu to reflect their real/new roles - Added UserAgent action to the tools menu REVIEW:102170 REVIEWED-BY: fritz_van_tom
Diffstat (limited to 'src/adblock/adblockmanager.cpp')
-rw-r--r--src/adblock/adblockmanager.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp
index 6a4a3827..ff09fdc7 100644
--- a/src/adblock/adblockmanager.cpp
+++ b/src/adblock/adblockmanager.cpp
@@ -33,6 +33,7 @@
// Local Includes
#include "adblocknetworkreply.h"
+#include "adblockwidget.h"
#include "webpage.h"
// KDE Includes
@@ -362,3 +363,17 @@ void AdBlockManager::addSubscription(const QString &title, const QString &locati
ReKonfig::setSubscriptionTitles(titles);
ReKonfig::setSubscriptionLocations(locations);
}
+
+
+void AdBlockManager::showSettings()
+{
+ QPointer<KDialog> dialog = new KDialog();
+ dialog->setCaption(i18nc("@title:window", "Ad Block Settings"));
+ dialog->setButtons(KDialog::Ok);
+
+ AdBlockWidget widget;
+ dialog->setMainWidget(&widget);
+ dialog->exec();
+
+ dialog->deleteLater();
+}