Valgrind: Postpone the decision on whether its a local run

The decision is wrong anyway, no harm done. Move it closer to a
location where it can be done correctly.

Change-Id: I92de8ffec92cae6b3de3322d5045b696ae62932f
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
hjk
2016-01-30 02:38:05 +01:00
parent 678d142497
commit 0ffbb5a041
4 changed files with 15 additions and 13 deletions

View File

@@ -45,8 +45,8 @@ class ValgrindProcess : public QObject
Q_OBJECT
public:
ValgrindProcess(bool isLocal, const QSsh::SshConnectionParameters &sshParams,
QSsh::SshConnection *connection = 0, QObject *parent = 0);
ValgrindProcess(const QSsh::SshConnectionParameters &sshParams,
QSsh::SshConnection *connection, QObject *parent);
bool isRunning() const;
@@ -65,7 +65,7 @@ public:
qint64 pid() const;
QSsh::SshConnection *connection() const;
bool isLocal() const { return m_isLocal; }
bool isLocal() const;
signals:
void started();
@@ -92,7 +92,6 @@ private:
qint64 m_pid;
struct Remote {
QSsh::SshConnectionParameters m_params;
QSsh::SshConnection *m_connection;
QSsh::SshRemoteProcess::Ptr m_process;
QString m_errorString;
@@ -100,9 +99,9 @@ private:
QSsh::SshRemoteProcess::Ptr m_findPID;
} m_remote;
QSsh::SshConnectionParameters m_params;
QString m_valgrindExecutable;
QStringList m_valgrindArguments;
bool m_isLocal;
};
} // namespace Valgrind