summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/opengl/main.cpp
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/main.cpp
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/main.cpp')
-rw-r--r--examples/activeqt/opengl/main.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/activeqt/opengl/main.cpp b/examples/activeqt/opengl/main.cpp
index 0596b2b..1c8a79b 100644
--- a/examples/activeqt/opengl/main.cpp
+++ b/examples/activeqt/opengl/main.cpp
@@ -54,13 +54,11 @@
//! [0]
#include <QAxFactory>
-QAXFACTORY_DEFAULT( GLBox,
- "{5fd9c22e-ed45-43fa-ba13-1530bb6b03e0}",
- "{33b051af-bb25-47cf-a390-5cfd2987d26a}",
- "{8c996c29-eafa-46ac-a6f9-901951e765b5}",
- "{2c3c183a-eeda-41a4-896e-3d9c12c3577d}",
- "{83e16271-6480-45d5-aaf1-3f40b7661ae4}"
- )
+QAXFACTORY_BEGIN(
+ "{2c3c183a-eeda-41a4-896e-3d9c12c3577d}", // type library ID
+ "{83e16271-6480-45d5-aaf1-3f40b7661ae4}") // application ID
+ QAXCLASS(GLBox)
+QAXFACTORY_END()
//! [0] //! [1]
/*