summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-03-25 11:02:01 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-12 02:30:00 +0200
commit6c93d6d04176ac3460c92b46fae41606e5c9ac0f (patch)
treea0de794c224b1b1cf345b81b04c936c734de5dda
parentTirtha's string suggestion about DNT header settings (diff)
downloadrekonq-6c93d6d04176ac3460c92b46fae41606e5c9ac0f.tar.xz
Launch proxy, cache, cookies settings as (Q)Process(es)
-rw-r--r--src/settings/advancedwidget.cpp10
-rw-r--r--src/settings/advancedwidget.h3
-rw-r--r--src/settings/privacywidget.cpp16
-rw-r--r--src/settings/privacywidget.h3
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"