Commit b45bfbf6 authored by hjk's avatar hjk
Browse files

Add TerminalAspect convenience accessor



Unbreaks build after 90f19ce.

Change-Id: I0f1ddec10abda39149dd3743bdff1d0186d1de31
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent c9ad077e
......@@ -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
*/
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment