Fix deprecated function

This commit is contained in:
Sjoer van der Ploeg
2021-01-12 22:24:09 +01:00
committed by GitHub
parent e769d87cb2
commit 9dfe19b0db
+1 -1
View File
@@ -1585,7 +1585,7 @@ void MainWindow::updateWindowActions()
QString scut;
if (++count < 10)
scut = tr("Alt+%1").arg(count);
QAction * act = addActToGroup(windowsListActions, "", "", "window_ptr", qVariantFromValue(win), QVariant(), scut);
QAction * act = addActToGroup(windowsListActions, "", "", "window_ptr", QVariant::fromValue(win), QVariant(), scut);
act->setChecked(win == mdiArea->activeSubWindow());
updateWindowActionTitle(win, act);
}