mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Fix test build.
The older moc doesn't expand macros and wouldn't evaluate QT_VERSION_CHECK.
This commit is contained in:
parent
92dc3047d0
commit
89df528090
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue