diff options
author | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2020-10-10 20:56:35 +0300 |
---|---|---|
committer | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2020-10-12 11:40:55 +0300 |
commit | 51574fb279b83e313395e5d4062120d8304d69a2 (patch) | |
tree | 69ff8c3a96334e131d202f89c4e2baacd8969f29 /tests/postbuild | |
parent | 7562474e83bfa5ae332b48ce08881456a5d0ad95 (diff) |
Port QProcess::pid() usages to QProcess::processId()
QProcess::pid() was dropped. Its replacement is QProcess::processId().
Change-Id: I1223efdcd096cb251ae1d9cd838e1ab98646b4c2
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/postbuild')
-rw-r--r-- | tests/postbuild/guiapplauncher/tst_guiapplauncher.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/postbuild/guiapplauncher/tst_guiapplauncher.cpp b/tests/postbuild/guiapplauncher/tst_guiapplauncher.cpp index 0bf62cad..5cefd532 100644 --- a/tests/postbuild/guiapplauncher/tst_guiapplauncher.cpp +++ b/tests/postbuild/guiapplauncher/tst_guiapplauncher.cpp @@ -342,7 +342,10 @@ bool tst_GuiAppLauncher::runApp(const AppLaunchData &data, QString *errorMessage return false; } // Get window id. - const QString winId = m_wm->waitForTopLevelWindow(data.splashScreen ? 2 : 1, process.pid(), data.topLevelWindowTimeoutMS, errorMessage); + const QString winId = + m_wm->waitForTopLevelWindow(data.splashScreen ? 2 : 1, process.processId(), + data.topLevelWindowTimeoutMS, errorMessage); + if (winId.isEmpty()) { ensureTerminated(&process); return false; @@ -350,7 +353,7 @@ bool tst_GuiAppLauncher::runApp(const AppLaunchData &data, QString *errorMessage qDebug("Window: %s\n", qPrintable(winId)); // Wait a bit, then send close QThread::msleep(data.upTimeMS); - if (m_wm->sendCloseEvent(winId, process.pid(), errorMessage)) { + if (m_wm->sendCloseEvent(winId, process.processId(), errorMessage)) { qDebug("Sent close to window: %s\n", qPrintable(winId)); } else { ensureTerminated(&process); |