summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/graphicsview.pro
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-12-21 12:09:56 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-21 19:05:02 +0100
commit586adeabe4d58a7c8a71bbb1be79c3533ab858ff (patch)
tree62a13574bca965442bc1c66bd63d54550e3db7a0 /examples/widgets/graphicsview/graphicsview.pro
parent7706c31eaa686299d7e22da809fec00c0db47c86 (diff)
add and use qtHaveModule() function
this is much more elegant than the so far propagated !isEmpty(QT.foo.name). also replace feature-specific tests (no-gui and no-widgets) and the obsolete contains(QT_CONFIG, foo) syntax. Change-Id: Ia4b3c8febcabf9eeca67b1f9173a523820b1038b Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'examples/widgets/graphicsview/graphicsview.pro')
-rw-r--r--examples/widgets/graphicsview/graphicsview.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/graphicsview/graphicsview.pro b/examples/widgets/graphicsview/graphicsview.pro
index 901533a8de..9d6d7a75f6 100644
--- a/examples/widgets/graphicsview/graphicsview.pro
+++ b/examples/widgets/graphicsview/graphicsview.pro
@@ -15,6 +15,6 @@ SUBDIRS = \
contains(DEFINES, QT_NO_CURSOR)|contains(DEFINES, QT_NO_DRAGANDDROP): SUBDIRS -= dragdroprobot
-contains(QT_CONFIG, opengl):!contains(QT_CONFIG, opengles1):!contains(QT_CONFIG, opengles2):{
+qtHaveModule(opengl):!contains(QT_CONFIG, opengles.) {
SUBDIRS += boxes
}