summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-25 14:49:50 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-29 13:13:55 (GMT)
commit4df10827546faafc3558bbe3c255e5cdab1984e5 (patch)
tree657cdb84797613a04ce87aa9f1e9a00d21bc22ec /src/corelib/global
parent84c250448f8b1a3adee4dcaf2fc8edb282dda225 (diff)
downloadQt-4df10827546faafc3558bbe3c255e5cdab1984e5.zip
Qt-4df10827546faafc3558bbe3c255e5cdab1984e5.tar.gz
Qt-4df10827546faafc3558bbe3c255e5cdab1984e5.tar.bz2
Readd the Qt Evaluation timebomb, step 1.
This is the QtCore part of the timebomb. Reviewed-by: Daniel Molkentin
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qlibraryinfo.cpp11
-rw-r--r--src/corelib/global/qlibraryinfo.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
index e227403..17273e9 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.
*/
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
{