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:
@@ -38,7 +38,6 @@
|
||||
#include <projectexplorer/projecttree.h>
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/runnables.h>
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
@@ -116,11 +115,10 @@ UnstartedAppWatcherDialog::UnstartedAppWatcherDialog(QWidget *parent)
|
||||
if (activeTarget) {
|
||||
if (RunConfiguration *runConfig = activeTarget->activeRunConfiguration()) {
|
||||
const Runnable runnable = runConfig->runnable();
|
||||
if (runnable.is<StandardRunnable>() && isLocal(runConfig)) {
|
||||
if (isLocal(runConfig)) {
|
||||
resetExecutable->setEnabled(true);
|
||||
connect(resetExecutable, &QPushButton::clicked,
|
||||
this, [this, runnable]() {
|
||||
m_pathChooser->setPath(runnable.as<StandardRunnable>().executable);
|
||||
connect(resetExecutable, &QPushButton::clicked, this, [this, runnable] {
|
||||
m_pathChooser->setPath(runnable.executable);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -198,8 +196,8 @@ void UnstartedAppWatcherDialog::selectExecutable()
|
||||
if (activeTarget) {
|
||||
if (RunConfiguration *runConfig = activeTarget->activeRunConfiguration()) {
|
||||
const Runnable runnable = runConfig->runnable();
|
||||
if (runnable.is<StandardRunnable>() && isLocal(runConfig))
|
||||
path = QFileInfo(runnable.as<StandardRunnable>().executable).path();
|
||||
if (isLocal(runConfig))
|
||||
path = QFileInfo(runnable.executable).path();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user