summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-07-09 16:04:46 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2010-07-09 16:04:46 +0200
commite7054204ff74bde531d293de5b360587724f6857 (patch)
treed334bfe4000ce606eb6e732923c915edfb7c3a07 /src/gui/kernel/qwidget.h
parentc7590d9f255e1efd3dc528e1052f997f4f477009 (diff)
Added QPlatformWindowFormat
Its mostly a copy of QGLFormat Only plugin that uses it is the openkode, and thats just a poc.
Diffstat (limited to 'src/gui/kernel/qwidget.h')
-rw-r--r--src/gui/kernel/qwidget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.h b/src/gui/kernel/qwidget.h
index 8e08ce5a26..c750465d90 100644
--- a/src/gui/kernel/qwidget.h
+++ b/src/gui/kernel/qwidget.h
@@ -56,6 +56,10 @@
#include <QtGui/qcursor.h>
#include <QtGui/qkeysequence.h>
+#ifdef Q_WS_QPA //should this go somewhere else?
+#include <QtGui/qplatformwindowformat_qpa.h>
+#endif
+
#ifdef QT_INCLUDE_COMPAT
#include <QtGui/qevent.h>
#endif
@@ -631,6 +635,10 @@ public:
#if defined(Q_WS_QPA)
void setPlatformWindow(QPlatformWindow *window);
QPlatformWindow *platformWindow() const;
+
+ void setPlatformWindowFormat(const QPlatformWindowFormat &format);
+ QPlatformWindowFormat platformWindowFormat() const;
+
friend class QDesktopScreenWidget;
#endif