summaryrefslogtreecommitdiff
path: root/src/webinspectorpanel.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-30 11:23:37 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-30 11:23:37 +0200
commitc896cc340d7e6e0878b3249c5792e6d88a12cf42 (patch)
treefd0a7a61ff1d07f301f2188de5cb6fa473134897 /src/webinspectorpanel.cpp
parentA tiny improvement in the error page, showing a fat icon.. :) (diff)
downloadrekonq-c896cc340d7e6e0878b3249c5792e6d88a12cf42.tar.xz
A coding style round
Diffstat (limited to 'src/webinspectorpanel.cpp')
-rw-r--r--src/webinspectorpanel.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/webinspectorpanel.cpp b/src/webinspectorpanel.cpp
index 6f8e48a0..b260eb6b 100644
--- a/src/webinspectorpanel.cpp
+++ b/src/webinspectorpanel.cpp
@@ -10,9 +10,9 @@
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
-* by the membership of KDE e.V.), which shall act as a proxy
+* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
-*
+*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -41,23 +41,23 @@
#include <QWebInspector>
-WebInspectorPanel::WebInspectorPanel(QString title, QWidget *parent)
- : QDockWidget(title, parent)
+WebInspectorPanel::WebInspectorPanel(QString title, QWidget *parent)
+ : QDockWidget(title, parent)
{
setObjectName("webInspectorDock");
- setWidget( new QWebInspector(this) );
+ setWidget(new QWebInspector(this));
}
-
-void WebInspectorPanel::closeEvent(QCloseEvent *event)
-{
+
+void WebInspectorPanel::closeEvent(QCloseEvent *event)
+{
Q_UNUSED(event);
toggle(false);
}
MainWindow* WebInspectorPanel::mainWindow()
-{
+{
return qobject_cast< MainWindow* >(parentWidget());
}
@@ -79,8 +79,8 @@ void WebInspectorPanel::toggle(bool enable)
}
-void WebInspectorPanel::changeCurrentPage()
-{
+void WebInspectorPanel::changeCurrentPage()
+{
bool enable = mainWindow()->currentTab()->view()->settings()->testAttribute(QWebSettings::DeveloperExtrasEnabled);
toggle(enable);
}