summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/adblockwidget.cpp14
-rw-r--r--src/settings/appearancewidget.cpp4
-rw-r--r--src/settings/generalwidget.cpp8
-rw-r--r--src/settings/networkwidget.cpp10
-rw-r--r--src/settings/settingsdialog.cpp10
-rw-r--r--src/settings/tabswidget.cpp4
-rw-r--r--src/settings/webkitwidget.cpp4
7 files changed, 27 insertions, 27 deletions
diff --git a/src/settings/adblockwidget.cpp b/src/settings/adblockwidget.cpp
index 1461ba21..12a18fc0 100644
--- a/src/settings/adblockwidget.cpp
+++ b/src/settings/adblockwidget.cpp
@@ -43,8 +43,8 @@
AdBlockWidget::AdBlockWidget(QWidget *parent)
- : QWidget(parent)
- , _changed(false)
+ : QWidget(parent)
+ , _changed(false)
{
setupUi(this);
@@ -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);
@@ -123,7 +123,7 @@ void AdBlockWidget::load()
QStringList subscriptions = ReKonfig::subscriptionTitles();
// load automatic rules
- foreach(const QString &sub, subscriptions)
+ foreach(const QString & sub, subscriptions)
{
QTreeWidgetItem *subItem = new QTreeWidgetItem(treeWidget);
subItem->setText(0, sub);
@@ -134,7 +134,7 @@ void AdBlockWidget::load()
KSharedConfig::Ptr config = KSharedConfig::openConfig("adblock", KConfig::SimpleConfig, "appdata");
KConfigGroup localGroup(config, "rules");
QStringList rules = localGroup.readEntry("local-rules" , QStringList());
- foreach(const QString &rule, rules)
+ foreach(const QString & rule, rules)
{
listWidget->addItem(rule);
}
@@ -149,7 +149,7 @@ void AdBlockWidget::loadRules(QTreeWidgetItem *item)
QString str = item->text(0) + "-rules";
QStringList rules = localGroup.readEntry(str , QStringList());
- foreach(const QString &rule, rules)
+ foreach(const QString & rule, rules)
{
QTreeWidgetItem *subItem = new QTreeWidgetItem(item);
subItem->setText(0, 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/appearancewidget.cpp b/src/settings/appearancewidget.cpp
index eb486c90..df28989e 100644
--- a/src/settings/appearancewidget.cpp
+++ b/src/settings/appearancewidget.cpp
@@ -36,8 +36,8 @@
#include <KCharsets>
AppearanceWidget::AppearanceWidget(QWidget *parent)
- : QWidget(parent)
- , _changed(false)
+ : QWidget(parent)
+ , _changed(false)
{
setupUi(this);
diff --git a/src/settings/generalwidget.cpp b/src/settings/generalwidget.cpp
index b86e7aec..9f6de0d5 100644
--- a/src/settings/generalwidget.cpp
+++ b/src/settings/generalwidget.cpp
@@ -40,8 +40,8 @@
#include <kstandarddirs.h>
GeneralWidget::GeneralWidget(QWidget *parent)
- : QWidget(parent)
- , _changed(false)
+ : QWidget(parent)
+ , _changed(false)
{
setupUi(this);
@@ -75,7 +75,7 @@ void GeneralWidget::setHomeToCurrentPage()
{
MainWindow *mw = rApp->mainWindow();
WebTab *webTab = mw->currentTab();
- if (webTab)
+ if(webTab)
{
kcfg_homePage->setText(webTab->url().prettyUrl());
}
@@ -90,7 +90,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/networkwidget.cpp b/src/settings/networkwidget.cpp
index 52f47ffb..c2988eb1 100644
--- a/src/settings/networkwidget.cpp
+++ b/src/settings/networkwidget.cpp
@@ -37,11 +37,11 @@
NetworkWidget::NetworkWidget(QWidget *parent)
- : QWidget(parent)
- , _cacheModule(0)
- , _cookiesModule(0)
- , _proxyModule(0)
- , _changed(false)
+ : QWidget(parent)
+ , _cacheModule(0)
+ , _cookiesModule(0)
+ , _proxyModule(0)
+ , _changed(false)
{
QVBoxLayout *l = new QVBoxLayout(this);
l->setMargin(0);
diff --git a/src/settings/settingsdialog.cpp b/src/settings/settingsdialog.cpp
index 6f7f3347..8afb61d7 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");
}
@@ -149,8 +149,8 @@ Private::Private(SettingsDialog *parent)
SettingsDialog::SettingsDialog(QWidget *parent)
- : KConfigDialog(parent, "rekonfig", ReKonfig::self())
- , d(new Private(this))
+ : KConfigDialog(parent, "rekonfig", ReKonfig::self())
+ , d(new Private(this))
{
showButtonSeparator(false);
setWindowTitle(i18nc("Window title of the settings dialog", "Configure – rekonq"));
@@ -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();
diff --git a/src/settings/tabswidget.cpp b/src/settings/tabswidget.cpp
index 30410f00..67829f82 100644
--- a/src/settings/tabswidget.cpp
+++ b/src/settings/tabswidget.cpp
@@ -30,8 +30,8 @@
TabsWidget::TabsWidget(QWidget *parent)
- : QWidget(parent)
- , _changed(false)
+ : QWidget(parent)
+ , _changed(false)
{
setupUi(this);
}
diff --git a/src/settings/webkitwidget.cpp b/src/settings/webkitwidget.cpp
index 6e837ead..04242af1 100644
--- a/src/settings/webkitwidget.cpp
+++ b/src/settings/webkitwidget.cpp
@@ -30,8 +30,8 @@
WebKitWidget::WebKitWidget(QWidget *parent)
- : QWidget(parent)
- , _changed(false)
+ : QWidget(parent)
+ , _changed(false)
{
setupUi(this);
}