summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2009-11-06 09:28:16 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2009-11-06 12:17:00 (GMT)
commit4bbcfc85eb69f7a04b1ec4264ded855be0df46d7 (patch)
treeadca87fce882415406d526ef6a57736341274740 /src/corelib
parent19d24c867bfb7b95562e8658b0c795dc0296ba80 (diff)
downloadQt-4bbcfc85eb69f7a04b1ec4264ded855be0df46d7.zip
Qt-4bbcfc85eb69f7a04b1ec4264ded855be0df46d7.tar.gz
Qt-4bbcfc85eb69f7a04b1ec4264ded855be0df46d7.tar.bz2
Fix QT_NO_DATESTRING
Reviewed-by: tom
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/global/qlibraryinfo.cpp2
-rw-r--r--src/corelib/global/qlibraryinfo.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
index 15a06d7..15325ae 100644
--- a/src/corelib/global/qlibraryinfo.cpp
+++ b/src/corelib/global/qlibraryinfo.cpp
@@ -212,11 +212,13 @@ QLibraryInfo::buildKey()
Returns the installation date for this build of Qt. The install date will
usually be the last time that Qt sources were configured.
*/
+#ifndef QT_NO_DATESTRING
QDate
QLibraryInfo::buildDate()
{
return QDate::fromString(QString::fromLatin1(qt_configure_installation + 12), Qt::ISODate);
}
+#endif //QT_NO_DATESTRING
/*!
Returns the location specified by \a loc.
diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h
index 88e8566..f65051d 100644
--- a/src/corelib/global/qlibraryinfo.h
+++ b/src/corelib/global/qlibraryinfo.h
@@ -60,7 +60,9 @@ public:
static QString licensedProducts();
static QString buildKey();
+#ifndef QT_NO_DATESTRING
static QDate buildDate();
+#endif //QT_NO_DATESTRING
enum LibraryLocation
{