forked from qt-creator/qt-creator
Add TerminalAspect convenience accessor
Unbreaks build after 90f19ce. Change-Id: I0f1ddec10abda39149dd3743bdff1d0186d1de31 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user