diff options
author | David Boddie <david.boddie@nokia.com> | 2011-06-03 17:05:31 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-06-03 17:05:31 (GMT) |
commit | cf5b70ae1ac7cbd6143d73d1aff52d08ec909fd2 (patch) | |
tree | 5a9c2b877598a86fc7f341dbe83b9511061d50f6 /doc/src/snippets | |
parent | 8b1654ec6a892e84c1654c9196e80461ee6e92fa (diff) | |
download | Qt-cf5b70ae1ac7cbd6143d73d1aff52d08ec909fd2.zip Qt-cf5b70ae1ac7cbd6143d73d1aff52d08ec909fd2.tar.gz Qt-cf5b70ae1ac7cbd6143d73d1aff52d08ec909fd2.tar.bz2 |
Doc: Added a snippet to show how to test the Qt version.
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/qmake/qt_version.pro | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/snippets/qmake/qt_version.pro b/doc/src/snippets/qmake/qt_version.pro new file mode 100644 index 0000000..ac0338b --- /dev/null +++ b/doc/src/snippets/qmake/qt_version.pro @@ -0,0 +1,7 @@ +#! [checking for a specific version of Qt] +contains(QT_VERSION, "4.7.4") { + message(4.7.4) +} else { + message(Some other version) +} +#! [checking for a specific version of Qt] |