diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-08-04 11:43:23 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-08-04 11:48:57 +0200 |
commit | 309cd39927b613c378346a29330333be727c2a99 (patch) | |
tree | 994c7b1b0f189eddb530c5d83688b9c6016ac9a9 /src/adblock/adblockmanager.cpp | |
parent | action to search with default searchEnine in marked text's context menu. REVI... (diff) | |
download | rekonq-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.cpp | 15 |
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(); +} |