summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/openkode
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-07-27 06:30:58 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-07-27 07:58:09 (GMT)
commitc984a856ccf72731da052ff8bdae88fe3921fc83 (patch)
tree3e225f200aea90b4c00b1a9a57fd30f7a26b9103 /src/plugins/platforms/openkode
parent4edb2026545574e287c3d71c272c02dec9134e89 (diff)
downloadQt-c984a856ccf72731da052ff8bdae88fe3921fc83.zip
Qt-c984a856ccf72731da052ff8bdae88fe3921fc83.tar.gz
Qt-c984a856ccf72731da052ff8bdae88fe3921fc83.tar.bz2
Add QT_BEGIN_NAMESPACE and QT_BEGIN_HEADER to openkode plugin
Diffstat (limited to 'src/plugins/platforms/openkode')
-rw-r--r--src/plugins/platforms/openkode/qopenkodeeventloopintegration.cpp4
-rw-r--r--src/plugins/platforms/openkode/qopenkodeeventloopintegration.h7
-rw-r--r--src/plugins/platforms/openkode/qopenkodeintegration.h2
-rw-r--r--src/plugins/platforms/openkode/qopenkodewindow.cpp3
-rw-r--r--src/plugins/platforms/openkode/qopenkodewindow.h6
-rw-r--r--src/plugins/platforms/openkode/qopenkodewindowsurface.h2
6 files changed, 22 insertions, 2 deletions
diff --git a/src/plugins/platforms/openkode/qopenkodeeventloopintegration.cpp b/src/plugins/platforms/openkode/qopenkodeeventloopintegration.cpp
index 467b5b5..e21e1d7 100644
--- a/src/plugins/platforms/openkode/qopenkodeeventloopintegration.cpp
+++ b/src/plugins/platforms/openkode/qopenkodeeventloopintegration.cpp
@@ -2,7 +2,7 @@
#include <KD/kd.h>
-#include <QtCore/QDebug>
+QT_BEGIN_NAMESPACE
QOpenKODEEventLoopIntegration::QOpenKODEEventLoopIntegration()
{
@@ -27,3 +27,5 @@ void QOpenKODEEventLoopIntegration::wakeup()
KDEvent *event = kdCreateEvent();
kdPostThreadEvent(event,m_kdThread);
}
+
+QT_END_NAMESPACE
diff --git a/src/plugins/platforms/openkode/qopenkodeeventloopintegration.h b/src/plugins/platforms/openkode/qopenkodeeventloopintegration.h
index ef04640..868eda8 100644
--- a/src/plugins/platforms/openkode/qopenkodeeventloopintegration.h
+++ b/src/plugins/platforms/openkode/qopenkodeeventloopintegration.h
@@ -4,6 +4,10 @@
#include <QtGui/QPlatformEventLoopIntegration>
class KDThread;
+
+QT_BEGIN_HEADER
+QT_BEGIN_NAMESPACE
+
class QOpenKODEEventLoopIntegration : public QPlatformEventLoopIntegration
{
public:
@@ -14,4 +18,7 @@ private:
KDThread *m_kdThread;
};
+QT_END_NAMESPACE
+QT_END_HEADER
+
#endif // QOPENKODEEVENTLOOPINTEGRATION_H
diff --git a/src/plugins/platforms/openkode/qopenkodeintegration.h b/src/plugins/platforms/openkode/qopenkodeintegration.h
index 0eaf127..8d3d175 100644
--- a/src/plugins/platforms/openkode/qopenkodeintegration.h
+++ b/src/plugins/platforms/openkode/qopenkodeintegration.h
@@ -51,6 +51,7 @@
#include <GLES2/gl2.h>
#include <EGL/egl.h>
+QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
struct KDDesktopNV;
@@ -98,5 +99,6 @@ private:
};
QT_END_NAMESPACE
+QT_END_HEADER
#endif
diff --git a/src/plugins/platforms/openkode/qopenkodewindow.cpp b/src/plugins/platforms/openkode/qopenkodewindow.cpp
index faba2fb..2ad9238 100644
--- a/src/plugins/platforms/openkode/qopenkodewindow.cpp
+++ b/src/plugins/platforms/openkode/qopenkodewindow.cpp
@@ -55,7 +55,7 @@
#include <QtCore/qvector.h>
#include <QtCore/QDebug>
-
+QT_BEGIN_NAMESPACE
QOpenKODEWindow::QOpenKODEWindow(QWidget *tlw)
: QPlatformWindow(tlw)
@@ -173,3 +173,4 @@ QPlatformGLContext *QOpenKODEWindow::glContext()
{
return m_platformGlContext;
}
+QT_END_NAMESPACE
diff --git a/src/plugins/platforms/openkode/qopenkodewindow.h b/src/plugins/platforms/openkode/qopenkodewindow.h
index 51252a9..d11c0d8 100644
--- a/src/plugins/platforms/openkode/qopenkodewindow.h
+++ b/src/plugins/platforms/openkode/qopenkodewindow.h
@@ -47,6 +47,9 @@
#include <KD/kd.h>
+QT_BEGIN_HEADER
+QT_BEGIN_NAMESPACE
+
class QEGLPlatformContext;
class QOpenKODEWindow : public QPlatformWindow
@@ -71,4 +74,7 @@ private:
QEGLPlatformContext *m_platformGlContext;
};
+QT_END_NAMESPACE
+QT_END_HEADER
+
#endif //QOPENKODEWINDOW_H
diff --git a/src/plugins/platforms/openkode/qopenkodewindowsurface.h b/src/plugins/platforms/openkode/qopenkodewindowsurface.h
index 4acd1d8..f12b625 100644
--- a/src/plugins/platforms/openkode/qopenkodewindowsurface.h
+++ b/src/plugins/platforms/openkode/qopenkodewindowsurface.h
@@ -46,6 +46,7 @@
#include <EGL/egl.h>
+QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
class QOpenKODEWindow;
@@ -71,5 +72,6 @@ private:
};
QT_END_NAMESPACE
+QT_END_HEADER
#endif