diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-29 17:14:16 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-10-29 17:14:16 (GMT) |
commit | e4bec39a139363d1ee4cf3fb15a3fe4499215e77 (patch) | |
tree | 7a1632a4b1c988312ed9dc0f68d9ca16230d413b /src/corelib/global | |
parent | 6f602c01b9dc2b037cb42cacfe1c2df6e092a6b4 (diff) | |
parent | 5641bd0cdd9c90427d7d976473b894c530cdb715 (diff) | |
download | Qt-e4bec39a139363d1ee4cf3fb15a3fe4499215e77.zip Qt-e4bec39a139363d1ee4cf3fb15a3fe4499215e77.tar.gz Qt-e4bec39a139363d1ee4cf3fb15a3fe4499215e77.tar.bz2 |
Merge remote branch 'origin/4.6' into core-4.6
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qlibraryinfo.cpp | 20 | ||||
-rw-r--r-- | src/corelib/global/qlibraryinfo.h | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index e227403..32693e0 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -208,6 +208,18 @@ 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(); + //return QDate::fromString(QString::fromLatin1(qt_configure_installation + 12), Qt::ISODate); +} + +/*! Returns the location specified by \a loc. */ @@ -481,12 +493,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 { |