summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-03-05 15:57:46 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-05 16:31:27 (GMT)
commit4c4537d63a62d5ba0a2d8ddbc04026f81399268f (patch)
tree80e611983be9787a90616b829d6a4b7d8e70774e /src/gui
parentc6ac9fe2e8d219bb9694efaf5b25ec5108fb8fa6 (diff)
downloadQt-4c4537d63a62d5ba0a2d8ddbc04026f81399268f.zip
Qt-4c4537d63a62d5ba0a2d8ddbc04026f81399268f.tar.gz
Qt-4c4537d63a62d5ba0a2d8ddbc04026f81399268f.tar.bz2
Make QEgl::ConfigOptions use QFlags
Reviewed-By: Trustme
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/egl/qegl_p.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index ffb45aa..f500bd4 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -97,10 +97,14 @@ QT_END_INCLUDE_NAMESPACE
#include <QtGui/qpaintdevice.h>
+#include <QFlags>
+
QT_BEGIN_NAMESPACE
#define QEGL_NO_CONFIG ((EGLConfig)-1)
+
+
class QEglProperties;
namespace QEgl {
@@ -116,12 +120,14 @@ namespace QEgl {
BestPixelFormat
};
- enum ConfigOptions
+ enum ConfigOption
{
NoOptions = 0,
Translucent = 0x01,
Renderable = 0x02 // Config will be compatable with the paint engines (VG or GL)
};
+ Q_DECLARE_FLAGS(ConfigOptions, ConfigOption);
+
// Most of the time we use the same config for things like widgets & pixmaps, so rather than
// go through the eglChooseConfig loop every time, we use defaultConfig, which will return
@@ -153,6 +159,7 @@ namespace QEgl {
#endif
};
+Q_DECLARE_OPERATORS_FOR_FLAGS(QEgl::ConfigOptions);
QT_END_NAMESPACE