Skip to content

Commit

Permalink
use QString::mid instead of QString::midRef
Browse files Browse the repository at this point in the history
QString::midRef was removed in Qt 6.
  • Loading branch information
Be-ing committed Oct 10, 2021
1 parent fbaafb4 commit 4568f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/dlgkeywheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void DlgKeywheel::updateSvg() {

if (text.isText()) {
QDomText textNode = text.toText();
ChromaticKey key = static_cast<ChromaticKey>(id.midRef(2).toInt());
ChromaticKey key = static_cast<ChromaticKey>(id.mid(2).toInt());
QString keyString = KeyUtils::keyToString(key, m_notation);
textNode.setData(keyString);
}
Expand Down

0 comments on commit 4568f4a

Please sign in to comment.