Add TerminalAspect convenience accessor

Unbreaks build after 90f19ce.

Change-Id: I0f1ddec10abda39149dd3743bdff1d0186d1de31
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
hjk
2015-05-12 14:26:58 +02:00
parent c9ad077ee3
commit b45bfbf69c
2 changed files with 14 additions and 0 deletions

View File

@@ -113,6 +113,16 @@ void TerminalAspect::setUseTerminal(bool useTerminal)
}
}
ApplicationLauncher::Mode TerminalAspect::runMode() const
{
return m_useTerminal ? ApplicationLauncher::Console : ApplicationLauncher::Gui;
}
void TerminalAspect::setRunMode(ApplicationLauncher::Mode runMode)
{
setUseTerminal(runMode == ApplicationLauncher::Console);
}
/*!
\class ProjectExplorer::WorkingDirectoryAspect
*/

View File

@@ -32,6 +32,7 @@
#define RUNCONFIGURATION_ASPECTS_H
#include "runconfiguration.h"
#include "applicationlauncher.h"
QT_BEGIN_NAMESPACE
class QCheckBox;
@@ -61,6 +62,9 @@ public:
bool useTerminal() const;
void setUseTerminal(bool useTerminal);
ApplicationLauncher::Mode runMode() const;
void setRunMode(ApplicationLauncher::Mode runMode);
signals:
void useTerminalChanged(bool);