summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-05-25 12:46:20 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-05-25 12:46:20 (GMT)
commit1a477dcad1171d2d195422072fce62fc936e56cb (patch)
tree621c49fb5ec303c309ac1309b0b4b625774a2516
parentfa341212e574ef5970c4676456763b6b014e44c5 (diff)
downloadQt-1a477dcad1171d2d195422072fce62fc936e56cb.zip
Qt-1a477dcad1171d2d195422072fce62fc936e56cb.tar.gz
Qt-1a477dcad1171d2d195422072fce62fc936e56cb.tar.bz2
Changed qdoc program to display version from QT_VERSION_STR.
Task-number: 251486
-rw-r--r--tools/qdoc3/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qdoc3/main.cpp b/tools/qdoc3/main.cpp
index 3e6f832..5c247fa 100644
--- a/tools/qdoc3/main.cpp
+++ b/tools/qdoc3/main.cpp
@@ -43,6 +43,7 @@
main.cpp
*/
+#include <qglobal.h>
#include <QtCore>
#include <stdlib.h>
#include "apigenerator.h"
@@ -136,7 +137,8 @@ static void printHelp()
*/
static void printVersion()
{
- Location::information(tr("qdoc version 4.4.1"));
+ QString s = QString(tr("qdoc version ")) + QString(QT_VERSION_STR);
+ Location::information(s);
}
/*!