forked from qt-creator/qt-creator
Target Selector: Fix numbering of placeholders
Change-Id: I05120f079599de696b94f4b52a4bb7d98a3d506f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -399,7 +399,7 @@ public:
|
|||||||
const QString kitName = kit->displayName();
|
const QString kitName = kit->displayName();
|
||||||
const QString projectName = m_project->displayName();
|
const QString projectName = m_project->displayName();
|
||||||
|
|
||||||
QAction *enableAction = menu->addAction(tr("Enable Kit for Project \"%2\"").arg(projectName));
|
QAction *enableAction = menu->addAction(tr("Enable Kit for Project \"%1\"").arg(projectName));
|
||||||
enableAction->setEnabled(isSelectable && m_kitId.isValid() && !isEnabled());
|
enableAction->setEnabled(isSelectable && m_kitId.isValid() && !isEnabled());
|
||||||
QObject::connect(enableAction, &QAction::triggered, [this, kit] {
|
QObject::connect(enableAction, &QAction::triggered, [this, kit] {
|
||||||
m_project->addTargetForKit(kit);
|
m_project->addTargetForKit(kit);
|
||||||
@@ -415,7 +415,7 @@ public:
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
QAction *disableAction = menu->addAction(tr("Disable Kit for Project \"%2\"").arg(projectName));
|
QAction *disableAction = menu->addAction(tr("Disable Kit for Project \"%1\"").arg(projectName));
|
||||||
disableAction->setEnabled(isSelectable && m_kitId.isValid() && isEnabled());
|
disableAction->setEnabled(isSelectable && m_kitId.isValid() && isEnabled());
|
||||||
QObject::connect(disableAction, &QAction::triggered, m_project, [this] {
|
QObject::connect(disableAction, &QAction::triggered, m_project, [this] {
|
||||||
Target *t = target();
|
Target *t = target();
|
||||||
|
Reference in New Issue
Block a user