diff options
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/advancedwidget.cpp | 10 | ||||
-rw-r--r-- | src/settings/advancedwidget.h | 3 | ||||
-rw-r--r-- | src/settings/privacywidget.cpp | 16 | ||||
-rw-r--r-- | src/settings/privacywidget.h | 3 |
4 files changed, 25 insertions, 7 deletions
diff --git a/src/settings/advancedwidget.cpp b/src/settings/advancedwidget.cpp index a9ecebfe..7a607954 100644 --- a/src/settings/advancedwidget.cpp +++ b/src/settings/advancedwidget.cpp @@ -28,8 +28,8 @@ #include "advancedwidget.h" #include "advancedwidget.moc" -// KDE Includes -#include <KDebug> +// Qt Includes +#include <QProcess> AdvancedWidget::AdvancedWidget(QWidget *parent) @@ -60,5 +60,9 @@ void AdvancedWidget::hasChanged() void AdvancedWidget::launchProxySettings() { - kDebug() << "PROXY"; + QString program = QL1S("kcmshell4"); + QStringList arguments; + arguments << QL1S("proxy"); + QProcess *proc = new QProcess(this); + proc->start(program, arguments); } diff --git a/src/settings/advancedwidget.h b/src/settings/advancedwidget.h index 88fcf2af..c9509c9d 100644 --- a/src/settings/advancedwidget.h +++ b/src/settings/advancedwidget.h @@ -28,6 +28,9 @@ #define ADVANCED_WIDGET_H +// Rekonq Includes +#include "rekonq_defines.h" + // Ui Includes #include "ui_settings_advanced.h" diff --git a/src/settings/privacywidget.cpp b/src/settings/privacywidget.cpp index 789c29b1..105fab60 100644 --- a/src/settings/privacywidget.cpp +++ b/src/settings/privacywidget.cpp @@ -31,8 +31,8 @@ // Auto Includes #include "rekonq.h" -// KDE Includes -#include <KDebug> +// Qt Includes +#include <QProcess> PrivacyWidget::PrivacyWidget(QWidget *parent) @@ -98,13 +98,21 @@ void PrivacyWidget::updateJavascriptSettings(bool b) void PrivacyWidget::launchCacheSettings() { - kDebug() << "CACHE"; + QString program = QL1S("kcmshell4"); + QStringList arguments; + arguments << QL1S("cache"); + QProcess *proc = new QProcess(this); + proc->start(program, arguments); } void PrivacyWidget::launchCookieSettings() { - kDebug() << "COOKIES"; + QString program = QL1S("kcmshell4"); + QStringList arguments; + arguments << QL1S("cookies"); + QProcess *proc = new QProcess(this); + proc->start(program, arguments); } diff --git a/src/settings/privacywidget.h b/src/settings/privacywidget.h index 6d14e57f..2525c0d9 100644 --- a/src/settings/privacywidget.h +++ b/src/settings/privacywidget.h @@ -28,6 +28,9 @@ #define PRIVACY_WIDGET_H +// Rekonq Includes +#include "rekonq_defines.h" + // Ui Includes #include "ui_settings_privacy.h" |