forked from qt-creator/qt-creator
Qbs: Better support for consoleApplications
Change-Id: I673196c668b53a9b53065438ed860048eb1307ca Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -204,14 +204,18 @@ QString QbsRunConfiguration::executable() const
|
|||||||
|
|
||||||
ProjectExplorer::LocalApplicationRunConfiguration::RunMode QbsRunConfiguration::runMode() const
|
ProjectExplorer::LocalApplicationRunConfiguration::RunMode QbsRunConfiguration::runMode() const
|
||||||
{
|
{
|
||||||
if (m_forcedGuiMode)
|
if (forcedGuiMode())
|
||||||
return LocalApplicationRunConfiguration::Gui;
|
return LocalApplicationRunConfiguration::Gui;
|
||||||
|
|
||||||
return m_runMode;
|
return m_runMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QbsRunConfiguration::forcedGuiMode() const
|
bool QbsRunConfiguration::forcedGuiMode() const
|
||||||
{
|
{
|
||||||
return m_forcedGuiMode;
|
QbsProject *pro = static_cast<QbsProject *>(target()->project());
|
||||||
|
const qbs::ProductData product = findProduct(pro->qbsProjectData(), m_qbsProduct);
|
||||||
|
|
||||||
|
return !product.properties().getProperty(QLatin1String("consoleApplication")).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QbsRunConfiguration::workingDirectory() const
|
QString QbsRunConfiguration::workingDirectory() const
|
||||||
|
@@ -128,7 +128,6 @@ private:
|
|||||||
|
|
||||||
// Cached startup sub project information
|
// Cached startup sub project information
|
||||||
ProjectExplorer::LocalApplicationRunConfiguration::RunMode m_runMode;
|
ProjectExplorer::LocalApplicationRunConfiguration::RunMode m_runMode;
|
||||||
bool m_forcedGuiMode;
|
|
||||||
bool m_userSetName;
|
bool m_userSetName;
|
||||||
QString m_userWorkingDirectory;
|
QString m_userWorkingDirectory;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user