summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/opengl/glbox.h
diff options
context:
space:
mode:
authorFredrik Orderud <forderud@gmail.com>2015-09-05 17:15:56 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-09-15 06:37:46 +0000
commit6a135e239af4ad38928d5504d6ac176930ff9d68 (patch)
tree4743f5e4bbebc61f679988c3d8c275b9fc9ab2ca /examples/activeqt/opengl/glbox.h
parent0dd2554101e0ef5d703c89eb671066e56f56c1f4 (diff)
Convert examples from QAXFACTORY_DEFAULT to Q_CLASSINFO.
Move class ID, interface ID and events ID COM metadata into C++ classes with Q_CLASSINFO for improved readability and maintainability. QAXFACTORY_DEFAULT is still documented with an example as part of the QAxFactory class documentation. Also, it is still used in the "testcon" ActiveX test container. Change-Id: I48f5502809081804dc86f1d6b862da281c4cc441 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'examples/activeqt/opengl/glbox.h')
-rw-r--r--examples/activeqt/opengl/glbox.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/activeqt/opengl/glbox.h b/examples/activeqt/opengl/glbox.h
index eb68c39..5c09912 100644
--- a/examples/activeqt/opengl/glbox.h
+++ b/examples/activeqt/opengl/glbox.h
@@ -57,7 +57,10 @@ class GLBox : public QGLWidget,
public QAxBindable
{
Q_OBJECT
-//! [0] //! [1]
+ Q_CLASSINFO("ClassID", "{5fd9c22e-ed45-43fa-ba13-1530bb6b03e0}")
+ Q_CLASSINFO("InterfaceID", "{33b051af-bb25-47cf-a390-5cfd2987d26a}")
+ Q_CLASSINFO("EventsID", "{8c996c29-eafa-46ac-a6f9-901951e765b5}")
+ //! [0] //! [1]
public: