summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/adblockwidget.cpp4
-rw-r--r--src/settings/generalwidget.cpp6
-rw-r--r--src/settings/settingsdialog.cpp6
3 files changed, 8 insertions, 8 deletions
diff --git a/src/settings/adblockwidget.cpp b/src/settings/adblockwidget.cpp
index 12a18fc0..ad8bd599 100644
--- a/src/settings/adblockwidget.cpp
+++ b/src/settings/adblockwidget.cpp
@@ -92,7 +92,7 @@ void AdBlockWidget::slotInfoLinkActivated(const QString &url)
void AdBlockWidget::insertRule()
{
QString rule = addFilterLineEdit->text();
- if(rule.isEmpty())
+ if (rule.isEmpty())
return;
listWidget->addItem(rule);
@@ -168,7 +168,7 @@ void AdBlockWidget::save()
QStringList localRules;
n = listWidget->count();
- for(int i = 0; i < n; ++i)
+ for (int i = 0; i < n; ++i)
{
QListWidgetItem *item = listWidget->item(i);
localRules << item->text();
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp
index 98d0d708..42f1f921 100644
--- a/src/settings/generalwidget.cpp
+++ b/src/settings/generalwidget.cpp
@@ -54,7 +54,7 @@ GeneralWidget::GeneralWidget(QWidget *parent)
checkKGetPresence();
KConfigGroup cg = KConfigGroup(KSharedConfig::openConfig("kioslaverc", KConfig::NoGlobals), QString());
- doNotTrackCheckBox->setChecked( cg.readEntry("DoNotTrack", false) );
+ doNotTrackCheckBox->setChecked(cg.readEntry("DoNotTrack", false));
connect(doNotTrackCheckBox, SIGNAL(clicked()), this, SLOT(hasChanged()));
}
@@ -85,7 +85,7 @@ void GeneralWidget::setHomeToCurrentPage()
{
MainWindow *mw = rApp->mainWindow();
WebTab *webTab = mw->currentTab();
- if(webTab)
+ if (webTab)
{
kcfg_homePage->setText(webTab->url().prettyUrl());
}
@@ -101,7 +101,7 @@ void GeneralWidget::disableHomeSettings(bool b)
void GeneralWidget::checkKGetPresence()
{
- if(KStandardDirs::findExe("kget").isNull())
+ if (KStandardDirs::findExe("kget").isNull())
{
kcfg_kgetDownload->setDisabled(true);
kcfg_kgetList->setDisabled(true);
diff --git a/src/settings/settingsdialog.cpp b/src/settings/settingsdialog.cpp
index 8afb61d7..a8d5f5b0 100644
--- a/src/settings/settingsdialog.cpp
+++ b/src/settings/settingsdialog.cpp
@@ -132,7 +132,7 @@ Private::Private(SettingsDialog *parent)
ebrowsingModule = new KCModuleProxy(ebrowsingInfo, parent);
pageItem = parent->addPage(ebrowsingModule, i18n("Search Engines"));
KIcon wsIcon("edit-web-search");
- if(wsIcon.isNull())
+ if (wsIcon.isNull())
{
wsIcon = KIcon("preferences-web-browser-shortcuts");
}
@@ -189,7 +189,7 @@ void SettingsDialog::readConfig()
// we need this function to SAVE settings in rc file..
void SettingsDialog::saveSettings()
{
- if(!hasChanged())
+ if (!hasChanged())
return;
ReKonfig::self()->writeConfig();
@@ -230,7 +230,7 @@ bool SettingsDialog::isDefault()
{
bool isDef = KConfigDialog::isDefault();
- if(isDef)
+ if (isDef)
{
// check our private widget values
isDef = d->appearanceWidg->isDefault();