QString.midRef is removed in Qt6

This commit is contained in:
berniev
2022-11-30 18:32:18 +10:00
committed by Uwe
parent 6f1b29769b
commit 34f41572b2

View File

@@ -182,7 +182,7 @@ void TaskProjGroup::viewToggled(bool toggle)
bool changed = false;
// Obtain name of checkbox
QString viewName = sender()->objectName();
int index = viewName.midRef(7).toInt();
int index = viewName.mid(7).toInt();
const char *viewNameCStr = viewChkIndexToCStr(index);
if ( toggle && !multiView->hasProjection( viewNameCStr ) ) {
Gui::Command::doCommand(Gui::Command::Doc,