Commit e47acb15 authored by hjk's avatar hjk

Compile fix with Qt 4

Change-Id: I28b9a63a066521cdbe67ad9b51d795450b6d070a
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent ef7a5836
......@@ -40,6 +40,7 @@ publication by Neil Fraser: http://neil.fraser.name/writing/diff/
#include <QList>
#include <QStringList>
#include <QMap>
#include <QPair>
#include <QCoreApplication>
namespace DiffEditor {
......
......@@ -986,10 +986,12 @@ void CustomWizardContext::reset()
currentDate.toString(Qt::ISODate));
baseReplacements.insert(QLatin1String("CurrentTime:ISO"),
currentTime.toString(Qt::ISODate));
#if QT_VERSION >= 0x050000
baseReplacements.insert(QLatin1String("CurrentDate:RFC"),
currentDate.toString(Qt::RFC2822Date));
baseReplacements.insert(QLatin1String("CurrentTime:RFC"),
currentTime.toString(Qt::RFC2822Date));
#endif
baseReplacements.insert(QLatin1String("CurrentDate:Locale"),
currentDate.toString(Qt::DefaultLocaleShortDate));
baseReplacements.insert(QLatin1String("CurrentTime:Locale"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment