diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-25 00:19:27 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-25 00:19:27 +0100 |
commit | 9d20e99fffeebe67fd8ff27cb4f9e353892f5190 (patch) | |
tree | 23462fac2e862a2f408a26f94ab024c4174c3458 /src/urlbar/webshortcutwidget.cpp | |
parent | rekonq 0.6.82 (diff) | |
download | rekonq-9d20e99fffeebe67fd8ff27cb4f9e353892f5190.tar.xz |
Coding style
Diffstat (limited to 'src/urlbar/webshortcutwidget.cpp')
-rw-r--r-- | src/urlbar/webshortcutwidget.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/urlbar/webshortcutwidget.cpp b/src/urlbar/webshortcutwidget.cpp index 2eb6f2e4..bf281177 100644 --- a/src/urlbar/webshortcutwidget.cpp +++ b/src/urlbar/webshortcutwidget.cpp @@ -1,5 +1,5 @@ /* This file is part of the KDE project - * + * * Copyright (C) 2009 by Fredy Yanardi <fyanardi@gmail.com> * Copyright (C) 2010-2011 by Lionel Chauvin <megabigbug@yahoo.fr> * @@ -30,14 +30,14 @@ #include <QtGui/QPushButton> #include <QtGui/QFormLayout> - + #include <KGlobalSettings> #include <KIcon> #include <KLocale> #include <KServiceTypeTrader> WebShortcutWidget::WebShortcutWidget(QWidget *parent) - : QDialog(parent) + : QDialog(parent) { QVBoxLayout *mainLayout = new QVBoxLayout(); QHBoxLayout *titleLayout = new QHBoxLayout(); @@ -100,7 +100,7 @@ WebShortcutWidget::WebShortcutWidget(QWidget *parent) setLayout(mainLayout); - setMinimumWidth (250); + setMinimumWidth(250); m_providers = KServiceTypeTrader::self()->query("SearchProvider"); @@ -154,11 +154,11 @@ void WebShortcutWidget::shortcutsChanged(const QString& newShorthands) QString contenderName = ""; QString contenderWS = ""; - Q_FOREACH (const QString &shorthand, shorthands) + Q_FOREACH(const QString &shorthand, shorthands) { - Q_FOREACH (KService::Ptr provider, m_providers) + Q_FOREACH(KService::Ptr provider, m_providers) { - if(provider->property("Keys").toStringList().contains(shorthand)) + if (provider->property("Keys").toStringList().contains(shorthand)) { contenderName = provider->property("Name").toString(); contenderWS = shorthand; @@ -172,7 +172,7 @@ void WebShortcutWidget::shortcutsChanged(const QString& newShorthands) m_okButton->setEnabled(false); m_noteLabel->setText(i18n("The shortcut \"%1\" is already assigned to \"%2\".", contenderWS, contenderName)); m_noteLabel->setVisible(true); - resize(minimumSize().width(), minimumSizeHint().height()+15); + resize(minimumSize().width(), minimumSizeHint().height() + 15); } else { @@ -189,4 +189,4 @@ void WebShortcutWidget::shortcutsChanged(const QString& newShorthands) #include "webshortcutwidget.moc" - + |