summaryrefslogtreecommitdiff
path: root/tests/plugins/declarativetestplugin/testhelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/declarativetestplugin/testhelper.h')
-rw-r--r--tests/plugins/declarativetestplugin/testhelper.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/plugins/declarativetestplugin/testhelper.h b/tests/plugins/declarativetestplugin/testhelper.h
index c6d9f3b3..3b9f376e 100644
--- a/tests/plugins/declarativetestplugin/testhelper.h
+++ b/tests/plugins/declarativetestplugin/testhelper.h
@@ -38,6 +38,7 @@
#include <QSignalSpy>
#include <QQuickItem>
#include <QQuickWindow>
+#include <QSysInfo>
QT_BEGIN_NAMESPACE
@@ -51,6 +52,14 @@ public:
QSignalSpy spy(item->window(), &QQuickWindow::afterAnimating);
return spy.wait(timeout);
}
+
+ Q_INVOKABLE int x86Bits() const
+ {
+ if ( QSysInfo::currentCpuArchitecture() == "x86_64" )
+ return 64;
+ else
+ return 32;
+ }
};
QT_END_NAMESPACE