summaryrefslogtreecommitdiff
path: root/src/useragent/useragentwidget.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-17 16:46:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-17 16:46:24 +0200
commit82167d2422a4b6e3071dca68cf65a66e1da41ab4 (patch)
tree03c1f95a2aa60c48822a463cc3812b5c3415991e /src/useragent/useragentwidget.cpp
parentImproving tab previews (diff)
downloadrekonq-82167d2422a4b6e3071dca68cf65a66e1da41ab4.tar.xz
A round of the "new" astyle 2.01...
Diffstat (limited to 'src/useragent/useragentwidget.cpp')
-rw-r--r--src/useragent/useragentwidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/useragent/useragentwidget.cpp b/src/useragent/useragentwidget.cpp
index 0cdddadf..f5862544 100644
--- a/src/useragent/useragentwidget.cpp
+++ b/src/useragent/useragentwidget.cpp
@@ -33,7 +33,7 @@
UserAgentWidget::UserAgentWidget(QWidget *parent)
- : QWidget(parent)
+ : QWidget(parent)
{
setupUi(this);
@@ -44,7 +44,7 @@ UserAgentWidget::UserAgentWidget(QWidget *parent)
QStringList hosts = config.groupList();
kDebug() << "HOSTS" << hosts;
- Q_FOREACH(const QString &host, hosts)
+ Q_FOREACH(const QString & host, hosts)
{
QStringList tmp;
tmp << host;
@@ -62,7 +62,7 @@ UserAgentWidget::UserAgentWidget(QWidget *parent)
void UserAgentWidget::deleteUserAgent()
{
QTreeWidgetItem *item = sitePolicyTreeWidget->currentItem();
- if (!item)
+ if(!item)
return;
sitePolicyTreeWidget->takeTopLevelItem(sitePolicyTreeWidget->indexOfTopLevelItem(item));
@@ -72,7 +72,7 @@ void UserAgentWidget::deleteUserAgent()
KConfig config("kio_httprc", KConfig::NoGlobals);
KConfigGroup group(&config, host);
- if (group.exists())
+ if(group.exists())
{
group.deleteGroup();
KProtocolManager::reparseConfiguration();
@@ -87,7 +87,7 @@ void UserAgentWidget::deleteAll()
KConfig config("kio_httprc", KConfig::NoGlobals);
QStringList list = config.groupList();
- Q_FOREACH(const QString &groupName, list)
+ Q_FOREACH(const QString & groupName, list)
{
kDebug() << "HOST: " << groupName;