forked from qt-creator/qt-creator
QbsProjectManager: Set ID, objectName, priority for QbsKitInformation
All other KitInformation sub classes do that, and if the ID is left empty we run into strange corner cases. Change-Id: I61047f077d49945a94bc93c28f0e9cb48e4bbe8e Task-number: QTCREATORBUG-20636 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -72,6 +72,13 @@ private:
|
||||
QPushButton * const m_changeButton;
|
||||
};
|
||||
|
||||
QbsKitInformation::QbsKitInformation()
|
||||
{
|
||||
setObjectName(QLatin1String("QbsKitInformation"));
|
||||
setId(QbsKitInformation::id());
|
||||
setPriority(22000);
|
||||
}
|
||||
|
||||
QString QbsKitInformation::displayName()
|
||||
{
|
||||
return tr("Additional Qbs Profile Settings");
|
||||
|
||||
@@ -35,6 +35,8 @@ class QbsKitInformation final : public ProjectExplorer::KitInformation
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QbsKitInformation();
|
||||
|
||||
static QString displayName();
|
||||
static QString representation(const ProjectExplorer::Kit *kit);
|
||||
static QVariantMap properties(const ProjectExplorer::Kit *kit);
|
||||
|
||||
Reference in New Issue
Block a user