forked from qt-creator/qt-creator
Share "auto-detected" UI string and add tool tip
No need to have the same translatable string repeated at all these places. Also add tooltip to expand a bit on what "auto-detected" actually means. Task-number: QTCREATORBUG-25291 Change-Id: I25d43486758ba17256cf7e1ea2eea0ec3d567b62 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -223,8 +223,10 @@ const DebuggerItem *findDebugger(const Predicate &pred)
|
||||
DebuggerItemModel::DebuggerItemModel()
|
||||
{
|
||||
setHeader({tr("Name"), tr("Location"), tr("Type")});
|
||||
rootItem()->appendChild(new StaticTreeItem(tr("Auto-detected")));
|
||||
rootItem()->appendChild(new StaticTreeItem(tr("Manual")));
|
||||
rootItem()->appendChild(
|
||||
new StaticTreeItem({ProjectExplorer::Constants::msgAutoDetected()},
|
||||
{ProjectExplorer::Constants::msgAutoDetectedToolTip()}));
|
||||
rootItem()->appendChild(new StaticTreeItem(ProjectExplorer::Constants::msgManual()));
|
||||
}
|
||||
|
||||
void DebuggerItemModel::addDebugger(const DebuggerItem &item, bool changed)
|
||||
|
||||
Reference in New Issue
Block a user