diff options
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/passexceptionswidget.cpp | 8 | ||||
-rw-r--r-- | src/settings/privacywidget.cpp | 4 | ||||
-rw-r--r-- | src/settings/privacywidget.h | 4 | ||||
-rw-r--r-- | src/settings/settingsdialog.cpp | 6 |
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(); |