forked from qt-creator/qt-creator
Rename the "external tools menu" category to "uncategorized".
Also shows an explaining tool tip now.
This commit is contained in:
@@ -107,7 +107,9 @@ QVariant ExternalToolModel::data(const QString &category, int role) const
|
|||||||
switch (role) {
|
switch (role) {
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
case Qt::EditRole:
|
case Qt::EditRole:
|
||||||
return category.isEmpty() ? tr("External Tools Menu") : category;
|
return category.isEmpty() ? tr("Uncategorized") : category;
|
||||||
|
case Qt::ToolTipRole:
|
||||||
|
return category.isEmpty() ? tr("Tools that will appear directly under the External Tools menu.") : QVariant();
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user