forked from qt-creator/qt-creator
"New class" wizard: Respect the project's "no Qt keywords" setting
Fixes: QTCREATORBUG-6812 Change-Id: I3f51c61f7a1ed1e4626be6bc31fa2e3affed2084 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -312,6 +312,13 @@ FolderNode::AddNewInformation QbsGroupNode::addNewInformation(const QStringList
|
||||
return info;
|
||||
}
|
||||
|
||||
QVariant QbsGroupNode::data(Core::Id role) const
|
||||
{
|
||||
if (role == ProjectExplorer::Constants::QT_KEYWORDS_ENABLED)
|
||||
return m_qbsGroupData.properties().getModuleProperty("Qt.core", "enableKeywords");
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
// QbsProductNode:
|
||||
// --------------------------------------------------------------------
|
||||
@@ -433,6 +440,9 @@ QVariant QbsProductNode::data(Core::Id role) const
|
||||
if (role == Android::Constants::AndroidApk)
|
||||
return m_qbsProductData.targetExecutable();
|
||||
|
||||
if (role == ProjectExplorer::Constants::QT_KEYWORDS_ENABLED)
|
||||
return m_qbsProductData.moduleProperties().getModuleProperty("Qt.core", "enableKeywords");
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user