cpp/fileandtokenactions: fix qt4 compilation

Change-Id: Ic55e5e79c5707aa8e19be32f282d679e4e9be627
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Fawzi Mohamed
2013-04-11 17:56:54 +02:00
parent 4284693cd2
commit e6eb061293

View File

@@ -47,6 +47,11 @@
#include <QTextDocument>
#include <QtTest>
#if QT_VERSION >= 0x050000
#define MSKIP_SINGLE(x) QSKIP(x)
#else
#define MSKIP_SINGLE(x) QSKIP(x, SkipSingle)
#endif
/*!
Tests for executing "test actions" for
@@ -125,7 +130,7 @@ void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileAc
QStringList filesToOpen;
const QList<CppModelManagerInterface::ProjectInfo> projectInfos = mm->projectInfos();
if (projectInfos.isEmpty())
QSKIP("No project(s) loaded. Test operates only on loaded projects.");
MSKIP_SINGLE("No project(s) loaded. Test operates only on loaded projects.");
foreach (const CppModelManagerInterface::ProjectInfo &info, projectInfos) {
qDebug() << "Project" << info.project()->displayName() << "- files to process:"