Added staff to info
modified: mscore/scoreaccessibility.cpp
This commit is contained in:
parent
c3ff25358b
commit
e1e15759bd
1 changed files with 9 additions and 1 deletions
|
@ -129,8 +129,16 @@ void ScoreAccessibility::currentInfoChanged()
|
|||
QString rez = e->accessibleInfo();
|
||||
if (!barsAndBeats.isEmpty())
|
||||
rez += "; " + barsAndBeats;
|
||||
|
||||
QString staff = "";
|
||||
if (e->staffIdx() + 1) {
|
||||
staff = tr("Staff %1").arg(QString::number(e->staffIdx() + 1));
|
||||
rez = QString("%1; %2").arg(rez).arg(staff);
|
||||
}
|
||||
|
||||
statusBarLabel->setText(rez);
|
||||
score->setAccessibleInfo(e->screenReaderInfo() + barsAndBeats + " " + e->accessibleExtraInfo());
|
||||
QString screenReaderRez = QString("%1%2 %3 %4").arg(e->screenReaderInfo()).arg(barsAndBeats).arg(staff).arg(e->accessibleExtraInfo());
|
||||
score->setAccessibleInfo(screenReaderRez);
|
||||
}
|
||||
else if (score->selection().isRange()) {
|
||||
QString barsAndBeats = "";
|
||||
|
|
Loading…
Reference in a new issue