forked from qt-creator/qt-creator
Finish merging Runnable and StandardRunnable
As all Runnables are known to be StandardRunnables, this here essentially replaces all .is<StandardRunnable> by 'true'. .as<StandardRunnable> by no-op, and fixes the fallout. Change-Id: I1632f8e164fa0a9dff063df47a9e191fdf7bbb2e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include "qnxdeviceprocess.h"
|
||||
|
||||
#include <projectexplorer/devicesupport/sshdeviceprocess.h>
|
||||
#include <projectexplorer/runnables.h>
|
||||
|
||||
#include <utils/qtcprocess.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
@@ -69,7 +69,7 @@ QString QnxDeviceProcess::fullCommandLine(const Runnable &runnable) const
|
||||
void QnxDeviceProcess::doSignal(int sig)
|
||||
{
|
||||
auto signaler = new SshDeviceProcess(device(), this);
|
||||
StandardRunnable r;
|
||||
Runnable r;
|
||||
r.executable = QString::fromLatin1("kill -%2 `cat %1`").arg(m_pidFile).arg(sig);
|
||||
connect(signaler, &SshDeviceProcess::finished, signaler, &QObject::deleteLater);
|
||||
signaler->start(r);
|
||||
|
||||
Reference in New Issue
Block a user