summaryrefslogtreecommitdiff
path: root/src/useragent/useragentwidget.cpp
diff options
context:
space:
mode:
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;