summaryrefslogtreecommitdiffstats
path: root/examples/opengl/cube/main.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-01-03 14:20:01 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-01-04 11:12:05 +0100
commitca2f44680cb97e7a7c46ee0ab26654822fe65e2d (patch)
treeb9d85ad8ec1b18a6aa56b7657812cf3791bdf72e /examples/opengl/cube/main.cpp
parent28a21d98ef8d880a6dd86ee19dd803424bb5eae1 (diff)
parent83188c6499ccdc87c0a2c468bb497e287f5db369 (diff)
Merge branch 'stable' into dev
Conflicts: examples/widgets/painting/shared/shared.pri src/corelib/tools/qharfbuzz_p.h src/corelib/tools/qunicodetools.cpp src/plugins/platforms/windows/accessible/qwindowsaccessibility.cpp src/plugins/platforms/windows/qwindowsfontdatabase.cpp Change-Id: Ibc9860abf570e5ce8b052fb88feb73ec35e64bd3
Diffstat (limited to 'examples/opengl/cube/main.cpp')
-rw-r--r--examples/opengl/cube/main.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/examples/opengl/cube/main.cpp b/examples/opengl/cube/main.cpp
index fbc1d93e4a..fdae1caa16 100644
--- a/examples/opengl/cube/main.cpp
+++ b/examples/opengl/cube/main.cpp
@@ -47,16 +47,15 @@
int main(int argc, char *argv[])
{
- QApplication a(argc, argv);
- a.setApplicationName("cube");
- a.setApplicationVersion("0.1");
-#ifndef QT_NO_OPENGL
- MainWidget w;
- w.resize(640, 480);
- w.show();
+ QApplication app(argc, argv);
+ app.setApplicationName("cube");
+ app.setApplicationVersion("0.1");
+#ifdef QT_NO_OPENGL
+ MainWidget widget;
+ widget.show();
#else
- QLabel * notifyLabel = new QLabel("OpenGL Support required");
- notifyLabel->show();
+ QLabel note("OpenGL Support required");
+ note.show();
#endif
- return a.exec();
+ return app.exec();
}