QtSupport: Use TerminalAspect in CustomExecutableRunConfiguration

Change-Id: I4fddb145ed03b3bd28836cdd1d7b9f810a0ad111
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
hjk
2015-05-12 18:26:35 +02:00
parent aa78053974
commit 75784cd266
4 changed files with 33 additions and 32 deletions

View File

@@ -80,7 +80,8 @@ void TerminalAspect::addToMainConfigurationWidget(QWidget *parent, QFormLayout *
layout->addRow(QString(), m_checkBox);
connect(m_checkBox.data(), &QAbstractButton::clicked, this, [this] {
m_userSet = true;
setUseTerminal(true);
m_useTerminal = m_checkBox->isChecked();
emit useTerminalChanged(m_useTerminal);
});
}
@@ -121,6 +122,8 @@ ApplicationLauncher::Mode TerminalAspect::runMode() const
void TerminalAspect::setRunMode(ApplicationLauncher::Mode runMode)
{
setUseTerminal(runMode == ApplicationLauncher::Console);
if (m_checkBox)
m_checkBox->setChecked(m_useTerminal);
}
/*!