aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmltestrunner/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmltestrunner/main.cpp')
-rw-r--r--tools/qmltestrunner/main.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/tools/qmltestrunner/main.cpp b/tools/qmltestrunner/main.cpp
index 8c7ad4cb72..09cfc7fa1a 100644
--- a/tools/qmltestrunner/main.cpp
+++ b/tools/qmltestrunner/main.cpp
@@ -45,31 +45,7 @@
#include <QtOpenGL/qgl.h>
#endif
-#ifdef QT_OPENGL_LIB
-
-static QWidget *qmltestrunner_create_gl_viewport()
-{
- return new QGLWidget();
-}
-
-#endif
-
int main(int argc, char **argv)
{
-#ifdef QT_OPENGL_LIB
- bool isOpenGL = false;
- for (int index = 1; index < argc; ++index) {
- if (strcmp(argv[index], "-opengl") == 0) {
- isOpenGL = true;
- break;
- }
- }
- if (isOpenGL) {
- return quick_test_main(argc, argv, "qmltestrunner",
- qmltestrunner_create_gl_viewport, ".");
- } else
-#endif
- {
- return quick_test_main(argc, argv, "qmltestrunner", 0, ".");
- }
+ return quick_test_main(argc, argv, "qmltestrunner", ".");
}