From 89df528090049fd640d4ddcc3a3eb95f02eaa5a0 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 15 Jul 2015 09:26:39 +0200 Subject: [PATCH] Fix test build. The older moc doesn't expand macros and wouldn't evaluate QT_VERSION_CHECK. --- test/testfolderman.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testfolderman.h b/test/testfolderman.h index cb5b93e96..5889c5858 100644 --- a/test/testfolderman.h +++ b/test/testfolderman.h @@ -8,7 +8,7 @@ #pragma once -#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) +#if QT_VERSION >= 0x050100 #include #endif #include @@ -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());