diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 |
commit | 82167d2422a4b6e3071dca68cf65a66e1da41ab4 (patch) | |
tree | 03c1f95a2aa60c48822a463cc3812b5c3415991e /src/settings/adblockwidget.cpp | |
parent | Improving tab previews (diff) | |
download | rekonq-82167d2422a4b6e3071dca68cf65a66e1da41ab4.tar.xz |
A round of the "new" astyle 2.01...
Diffstat (limited to 'src/settings/adblockwidget.cpp')
-rw-r--r-- | src/settings/adblockwidget.cpp | 14 |
1 files changed, 7 insertions, 7 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(); |