summaryrefslogtreecommitdiffstats
path: root/libqtslave/qtestslave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libqtslave/qtestslave.cpp')
-rw-r--r--libqtslave/qtestslave.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/libqtslave/qtestslave.cpp b/libqtslave/qtestslave.cpp
index 7c4edb9..a4ac20a 100644
--- a/libqtslave/qtestslave.cpp
+++ b/libqtslave/qtestslave.cpp
@@ -59,6 +59,7 @@
#include <QLocale>
#include <QDebug>
#include <QPainter>
+#include <QSound>
#ifndef QT_NO_CLIPBOARD
# include <QClipboard>
@@ -106,9 +107,13 @@ public:
QTestSlavePrivate(QTestSlave *parent)
: eventRecordingEnabled(false),
p(parent),
- recorder(this),
- targetId(QLatin1String("default"))
- {}
+ recorder(this),
+ targetId(QLatin1String("default"))
+ {
+ // Play a sound as a audible confirmation that an app is started with QtUITest plugin loaded
+ QString fname = QDir::homePath() + QDir::separator() + "qtuitest.wav";
+ if (QFile::exists(fname)) QSound::play(fname);
+ }
bool event(QEvent *e);
bool waitForIdle(int timeout = 10000);