summaryrefslogtreecommitdiff
path: root/src/settings/adblockwidget.cpp
diff options
context:
space:
mode:
authorJohannes Troscher <fritz_van_tom@hotmail.com>2011-11-27 12:18:33 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-27 12:18:33 +0100
commit6390d8ea58021f67257527cf98af5074656e0838 (patch)
tree2defdd7055541f41da100a81aa715bfb10ce8cc9 /src/settings/adblockwidget.cpp
parentMerge branch 'bkGroupMidClick' (diff)
downloadrekonq-6390d8ea58021f67257527cf98af5074656e0838.tar.xz
Unifies macro style
REVIEW: 103242 REVIEWED-BY: adjam
Diffstat (limited to 'src/settings/adblockwidget.cpp')
-rw-r--r--src/settings/adblockwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings/adblockwidget.cpp b/src/settings/adblockwidget.cpp
index 3c7ec38f..17f05e75 100644
--- a/src/settings/adblockwidget.cpp
+++ b/src/settings/adblockwidget.cpp
@@ -123,7 +123,7 @@ void AdBlockWidget::load()
QStringList subscriptions = ReKonfig::subscriptionTitles();
// load automatic rules
- foreach(const QString & sub, subscriptions)
+ Q_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)
+ Q_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)
+ Q_FOREACH(const QString & rule, rules)
{
QTreeWidgetItem *subItem = new QTreeWidgetItem(item);
subItem->setText(0, rule);