summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-05-27 22:58:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-05-27 23:34:32 +0200
commit807e20570cbfef6e258313565598905564f1bb86 (patch)
tree695b3c940bce02305224e5781a7c48b5a6fdab94 /src/settings
parentRuntime Nepomuk tagging check (diff)
downloadrekonq-807e20570cbfef6e258313565598905564f1bb86.tar.xz
Kitchen sink clean up
- astyle - copyrights - (some) includes
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/passexceptionswidget.cpp8
-rw-r--r--src/settings/privacywidget.cpp4
-rw-r--r--src/settings/privacywidget.h4
-rw-r--r--src/settings/settingsdialog.cpp6
4 files changed, 11 insertions, 11 deletions
diff --git a/src/settings/passexceptionswidget.cpp b/src/settings/passexceptionswidget.cpp
index 8813c178..feee4d88 100644
--- a/src/settings/passexceptionswidget.cpp
+++ b/src/settings/passexceptionswidget.cpp
@@ -38,12 +38,12 @@ PassExWidget::PassExWidget(QWidget *parent)
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose, true);
-
+
connect(removeOneButton, SIGNAL(clicked()), this, SLOT(removeOne()));
connect(removeAllButton, SIGNAL(clicked()), this, SLOT(removeAll()));
QStringList exList = ReKonfig::walletBlackList();
- Q_FOREACH(const QString &str, exList)
+ Q_FOREACH(const QString & str, exList)
{
QListWidgetItem *item = new QListWidgetItem(str, listWidget);
listWidget->addItem(item);
@@ -54,7 +54,7 @@ PassExWidget::PassExWidget(QWidget *parent)
void PassExWidget::removeOne()
{
QString item = listWidget->takeItem(listWidget->currentRow())->text();
-
+
QStringList exList = ReKonfig::walletBlackList();
exList.removeOne(item);
ReKonfig::setWalletBlackList(exList);
@@ -64,7 +64,7 @@ void PassExWidget::removeOne()
void PassExWidget::removeAll()
{
listWidget->clear();
-
+
QStringList clearList;
ReKonfig::setWalletBlackList(clearList);
}
diff --git a/src/settings/privacywidget.cpp b/src/settings/privacywidget.cpp
index bb6aee7b..46774a63 100644
--- a/src/settings/privacywidget.cpp
+++ b/src/settings/privacywidget.cpp
@@ -49,7 +49,7 @@ PrivacyWidget::PrivacyWidget(QWidget *parent)
setupUi(this);
reload();
-
+
// DO NOT TRACK
KConfigGroup cg = KConfigGroup(KSharedConfig::openConfig("kioslaverc", KConfig::NoGlobals), QString());
doNotTrackCheckBox->setChecked(cg.readEntry("DoNotTrack", false));
@@ -77,7 +77,7 @@ void PrivacyWidget::save()
void PrivacyWidget::reload()
{
bool b = ReKonfig::javascriptEnabled();
-
+
kcfg_javascriptCanAccessClipboard->setEnabled(b);
kcfg_javascriptCanOpenWindows->setEnabled(b);
diff --git a/src/settings/privacywidget.h b/src/settings/privacywidget.h
index 8d90260e..229cb7df 100644
--- a/src/settings/privacywidget.h
+++ b/src/settings/privacywidget.h
@@ -52,10 +52,10 @@ public:
Q_SIGNALS:
void changed(bool);
-
+
private Q_SLOTS:
void hasChanged();
-
+
void launchCacheSettings();
void launchCookieSettings();
void showPassExceptions();
diff --git a/src/settings/settingsdialog.cpp b/src/settings/settingsdialog.cpp
index 0d5c2542..a45ee7de 100644
--- a/src/settings/settingsdialog.cpp
+++ b/src/settings/settingsdialog.cpp
@@ -71,7 +71,7 @@ private:
WebKitWidget *webkitWidg;
PrivacyWidget *privacyWidg;
AdvancedWidget *advancedWidg;
-
+
KCModuleProxy *ebrowsingModule;
KShortcutsEditor *shortcutsEditor;
@@ -163,7 +163,7 @@ SettingsDialog::SettingsDialog(QWidget *parent)
connect(d->ebrowsingModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->advancedWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->privacyWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
-
+
connect(d->shortcutsEditor, SIGNAL(keyChange()), this, SLOT(updateButtons()));
// save settings
@@ -194,7 +194,7 @@ void SettingsDialog::saveSettings()
d->ebrowsingModule->save();
d->privacyWidg->reload();
-
+
SearchEngine::reload();
rApp->opensearchManager()->removeDeletedEngines();