Skip to content

Commit

Permalink
Merge pull request #5474 from shoogle/qml-palette-navigation
Browse files Browse the repository at this point in the history
fix #297040: Palette keyboard navigation
  • Loading branch information
dmitrio95 committed Mar 10, 2020
2 parents 7569ebb + 2ed4a7e commit 3ea1b10
Show file tree
Hide file tree
Showing 6 changed files with 443 additions and 161 deletions.
4 changes: 3 additions & 1 deletion mscore/palette/palettemodel.cpp
Expand Up @@ -253,8 +253,10 @@ QVariant PaletteTreeModel::data(const QModelIndex& index, int role) const
if (const PalettePanel* pp = findPalettePanel(index)) {
switch (role) {
case Qt::DisplayRole:
case Qt::AccessibleTextRole:
return pp->translatedName();
case Qt::ToolTipRole:
case Qt::AccessibleTextRole:
return QString("%1 palette").arg(pp->translatedName());
case VisibleRole:
return pp->visible();
case CustomRole:
Expand Down

0 comments on commit 3ea1b10

Please sign in to comment.