Fix test build.

The older moc doesn't expand macros and wouldn't evaluate
QT_VERSION_CHECK.
This commit is contained in:
Christian Kamm 2015-07-15 09:26:39 +02:00
parent 92dc3047d0
commit 89df528090

View file

@ -8,7 +8,7 @@
#pragma once #pragma once
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) #if QT_VERSION >= 0x050100
#include <QTemporaryDir> #include <QTemporaryDir>
#endif #endif
#include <QtTest> #include <QtTest>
@ -38,7 +38,7 @@ class TestFolderMan: public QObject
private slots: private slots:
void testCheckPathValidityForNewFolder() void testCheckPathValidityForNewFolder()
{ {
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) #if QT_VERSION >= 0x050100
QTemporaryDir dir; QTemporaryDir dir;
QVERIFY(dir.isValid()); QVERIFY(dir.isValid());
QDir dir2(dir.path()); QDir dir2(dir.path());