summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qdesktopwidget.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-10-28 08:41:31 +0100
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-10-28 09:42:58 +0100
commit928bb6dfe9b3d5db9c7d669979ae6ccdf661df38 (patch)
tree60474230b311ca10c6d4c30bc8ccfbd07750dfbb /src/gui/kernel/qdesktopwidget.cpp
parent1583d643285641bf71e6a107331d788acca9850c (diff)
Fix namespace build.
At least Qt fails building with a namespace on Mac without this change. What happends is that inserting a namespace before the includes, will add the namespace twize if the included files also inserts the namespace. Rev-By: Alexis
Diffstat (limited to 'src/gui/kernel/qdesktopwidget.cpp')
-rw-r--r--src/gui/kernel/qdesktopwidget.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/kernel/qdesktopwidget.cpp b/src/gui/kernel/qdesktopwidget.cpp
index b1e100879b..c6d500050a 100644
--- a/src/gui/kernel/qdesktopwidget.cpp
+++ b/src/gui/kernel/qdesktopwidget.cpp
@@ -40,12 +40,11 @@
****************************************************************************/
#include "qglobal.h"
-
-QT_BEGIN_NAMESPACE
-
#include "qdesktopwidget.h"
#include "qwidget_p.h"
+QT_BEGIN_NAMESPACE
+
const QRect QDesktopWidget::screenGeometry(const QWidget *widget) const
{
QRect rect = QWidgetPrivate::screenGeometry(widget);