diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-29 14:17:58 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-29 14:17:58 (GMT) |
commit | e336c7a35f98d53f5746bbe8c0c7fbbaa0cf96e9 (patch) | |
tree | d13c48f4aa523de9aff848b3b557a36b1ab7870e /src/corelib/global | |
parent | 732bd6893a9e65d33927b9083fe5e30c0864e409 (diff) | |
parent | 8331d6dab88b589164e27e8f44980c742835a729 (diff) | |
download | Qt-e336c7a35f98d53f5746bbe8c0c7fbbaa0cf96e9.zip Qt-e336c7a35f98d53f5746bbe8c0c7fbbaa0cf96e9.tar.gz Qt-e336c7a35f98d53f5746bbe8c0c7fbbaa0cf96e9.tar.bz2 |
Merge branch '4.6'
Conflicts:
tools/qdoc3/test/qt-inc.qdocconf
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qlibraryinfo.cpp | 19 | ||||
-rw-r--r-- | src/corelib/global/qlibraryinfo.h | 2 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index e227403..15a06d7 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -208,6 +208,17 @@ QLibraryInfo::buildKey() } /*! + \since 4.6 + Returns the installation date for this build of Qt. The install date will + usually be the last time that Qt sources were configured. +*/ +QDate +QLibraryInfo::buildDate() +{ + return QDate::fromString(QString::fromLatin1(qt_configure_installation + 12), Qt::ISODate); +} + +/*! Returns the location specified by \a loc. */ @@ -481,12 +492,20 @@ void qt_core_boilerplate() "Contact: Nokia Corporation (qt-info@nokia.com)\n" "\n" "Build key: " QT_BUILD_KEY "\n" + "Build date: %s\n" "Installation prefix: %s\n" "Library path: %s\n" "Include path: %s\n", + qt_configure_installation + 12, qt_configure_prefix_path_str + 12, qt_configure_libraries_path_str + 12, qt_configure_headers_path_str + 12); + +#ifdef QT_EVAL + extern void qt_core_eval_init(uint); + qt_core_eval_init(1); +#endif + exit(0); } diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h index 3195777..88e8566 100644 --- a/src/corelib/global/qlibraryinfo.h +++ b/src/corelib/global/qlibraryinfo.h @@ -43,6 +43,7 @@ #define QLIBRARYINFO_H #include <QtCore/qstring.h> +#include <QtCore/QDate> QT_BEGIN_HEADER @@ -59,6 +60,7 @@ public: static QString licensedProducts(); static QString buildKey(); + static QDate buildDate(); enum LibraryLocation { |