forked from qt-creator/qt-creator
Designer: Fix compilation with Qt4
Change-Id: Ib6e3ab705504997e24c95c20bea21b007b62deb6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -29,6 +29,9 @@
|
||||
|
||||
#include "formeditorplugin.h"
|
||||
|
||||
#if QT_VERSION < 0x050000
|
||||
#include <QtTest>
|
||||
#else
|
||||
#include "formeditorw.h"
|
||||
|
||||
#include <coreplugin/testdatadir.h>
|
||||
@@ -143,11 +146,16 @@ private:
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
#endif
|
||||
|
||||
/// Check: Executes "Go To Slot..." on a QPushButton in a *.ui file and checks if the respective
|
||||
/// header and source files are updated.
|
||||
void FormEditorPlugin::test_gotoslot_withoutProject()
|
||||
void Designer::Internal::FormEditorPlugin::test_gotoslot_withoutProject()
|
||||
{
|
||||
#if QT_VERSION >= 0x050000
|
||||
GoToSlotTest test;
|
||||
test.run();
|
||||
#else
|
||||
QSKIP("Available only with >= Qt5", SkipSingle);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user