summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2011-04-12 11:56:14 +1000
committerLorn Potter <lorn.potter@nokia.com>2011-04-12 11:56:14 +1000
commit9107843eb07fab8eb3f8a655e7e7fe8778e42750 (patch)
tree10a9536de3e1da7a7e73da092299d0f54e959920 /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
parentb25054436f1799205e4ed40c46b7619d365d26f8 (diff)
remove compiler warnings
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r--tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
index 5409fb91bd..201d3de119 100644
--- a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
+++ b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
@@ -66,6 +66,9 @@ Q_DECLARE_METATYPE(QSystemDeviceInfo::LockTypeFlags);
* \return \p true if the requested signal was received
* \p false on timeout
*/
+
+#ifdef TESTR
+
static bool waitForSignal(QObject *obj, const char *signal, int timeout = 0)
{
QEventLoop loop;
@@ -81,7 +84,6 @@ static bool waitForSignal(QObject *obj, const char *signal, int timeout = 0)
return timeoutSpy.isEmpty();
}
-#ifdef TESTR
class ChangeDeviceThread : public QThread
{
public: