forked from qt-creator/qt-creator
cpp/fileandtokenactions: fix qt4 compilation
Change-Id: Ic55e5e79c5707aa8e19be32f282d679e4e9be627 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -47,6 +47,11 @@
|
|||||||
#include <QTextDocument>
|
#include <QTextDocument>
|
||||||
#include <QtTest>
|
#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
|
Tests for executing "test actions" for
|
||||||
@@ -125,7 +130,7 @@ void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileAc
|
|||||||
QStringList filesToOpen;
|
QStringList filesToOpen;
|
||||||
const QList<CppModelManagerInterface::ProjectInfo> projectInfos = mm->projectInfos();
|
const QList<CppModelManagerInterface::ProjectInfo> projectInfos = mm->projectInfos();
|
||||||
if (projectInfos.isEmpty())
|
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) {
|
foreach (const CppModelManagerInterface::ProjectInfo &info, projectInfos) {
|
||||||
qDebug() << "Project" << info.project()->displayName() << "- files to process:"
|
qDebug() << "Project" << info.project()->displayName() << "- files to process:"
|
||||||
|
Reference in New Issue
Block a user