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