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
*/