From 4568f4aaac2bed7fa674306b0cba2c8c223b33ea Mon Sep 17 00:00:00 2001
From: Be <be@mixxx.org>
Date: Sat, 9 Oct 2021 22:17:47 -0500
Subject: [PATCH] use QString::mid instead of QString::midRef

QString::midRef was removed in Qt 6.
---
 src/dialog/dlgkeywheel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dialog/dlgkeywheel.cpp b/src/dialog/dlgkeywheel.cpp
index e05e075f55d8..feb3506ac938 100644
--- a/src/dialog/dlgkeywheel.cpp
+++ b/src/dialog/dlgkeywheel.cpp
@@ -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);
             }