summaryrefslogtreecommitdiffstats
path: root/libqsystemtest/qsystemtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libqsystemtest/qsystemtest.cpp')
-rw-r--r--libqsystemtest/qsystemtest.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/libqsystemtest/qsystemtest.cpp b/libqsystemtest/qsystemtest.cpp
index 506521b..f41157d 100644
--- a/libqsystemtest/qsystemtest.cpp
+++ b/libqsystemtest/qsystemtest.cpp
@@ -1675,7 +1675,7 @@ void QSystemTest::keyClickHold( Qt::Key key, int duration, const QString &queryP
if (queryFailed()) return;
- QTest::qWait(duration);
+ wait(duration);
if (m_keyclickhold_key) {
m_keyclickhold_key = (Qt::Key)0;
@@ -1793,7 +1793,7 @@ void QSystemTest::mouseClickHold( const QPoint &point, int duration, QFlags<Qt::
if (m_strict_mode) QFAIL( "ERROR: mouseClickHold is not allowed in strict mode" );
mousePress(point, buttons);
- QTest::qWait(duration);
+ wait(duration);
mouseRelease(point, buttons);
}
@@ -1821,7 +1821,7 @@ void QSystemTest::mouseClickHold( const QString &queryPath, int duration, QFlags
if (m_strict_mode) QFAIL( "ERROR: mouseClickHold is not allowed in strict mode" );
mousePress(queryPath, buttons);
- QTest::qWait(duration);
+ wait(duration);
mouseRelease(queryPath, buttons);
}
@@ -2244,6 +2244,18 @@ void QSystemTest::startApplication( const QString &application, const QStringLis
}
/*!
+ Terminate any application(s) started by the test system. Normally, this won't be necessary
+ as startApplication will do this for you.
+
+ \sa {startApplication}
+*/
+void QSystemTest::killApplication()
+{
+ if (device_controller)
+ device_controller->killApplications();
+}
+
+/*!
Returns true if the widget specified by \a queryPath exists and is currently visible
to the user.
@@ -2700,8 +2712,8 @@ bool QSystemTest::recordEvents( const QString &manualSteps, bool gui )
if (QTestIDE::instance()->isConnected()) {
QTestIDE::instance()->eventRecordingStarted(currentFile(), currentLine(), manualSteps);
m_recording_events = true;
- while (!QTestIDE::instance()->mustStopEventRecording()) {
- QTest::qWait( 50 );
+ while (!QTestIDE::instance()->mustStopEventRecording()) {
+ wait( 50 );
}
m_recording_events = false;