summaryrefslogtreecommitdiffstats
path: root/tests/shared/qmltestutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shared/qmltestutil.h')
-rw-r--r--tests/shared/qmltestutil.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/shared/qmltestutil.h b/tests/shared/qmltestutil.h
index 9d9d4d0..0d1b78f 100644
--- a/tests/shared/qmltestutil.h
+++ b/tests/shared/qmltestutil.h
@@ -50,23 +50,6 @@
#include <QQmlProperty>
#include <QDir>
-#define waitForCallbackGeneric(eventloop) \
-{ \
- QTimer timer; \
- QObject::connect(&timer, SIGNAL(timeout()), this, SLOT(timeout())); \
- QObject::connect(&timer, SIGNAL(timeout()), &eventloop, SLOT(quit())); \
- timer.start(mClientTimeout); \
- mElapsedTimer.start(); \
- mTimedOut = false;\
- callbackError = false; \
- eventloop.exec(QEventLoop::AllEvents); \
- QCOMPARE(false, mTimedOut); \
-}
-
-#define waitForCallback() waitForCallbackGeneric(mEventLoop)
-#define waitForCallback2() waitForCallbackGeneric(mEventLoop2)
-
-
inline QVariant createObject(const QString &functionName)
{
static QStringList greekAlphabets;