Blind-fix Qt

This commit is contained in:
Henrik Rydgård 2026-01-08 16:10:49 +01:00
parent 77b9a6e2e8
commit a42f71c9ba

View File

@ -531,9 +531,17 @@ void MainWindow::createMenus()
->addEnableState(UISTATE_MENU);
fileMenu->addSeparator();
MenuTree* savestateMenu = new MenuTree(this, fileMenu, QT_TR_NOOP("Saves&tate slot"));
QStringList slotNames;
QList<int> slotIndices;
for (int i = 0; i < Config::iSaveStateSlotCount; ++i) {
slotNames << QString::number(i + 1);
slotIndices << i;
}
saveStateGroup = new MenuActionGroup(this, savestateMenu, SLOT(saveStateGroup_triggered(QAction *)),
QStringList() << "1" << "2" << "3" << "4" << "5",
QList<int>() << 0 << 1 << 2 << 3 << 4);
slotNames,
slotIndices);
fileMenu->add(new MenuAction(this, SLOT(qlstateAct()), QT_TR_NOOP("L&oad state"), Qt::Key_F4))
->addDisableState(UISTATE_MENU);
fileMenu->add(new MenuAction(this, SLOT(qsstateAct()), QT_TR_NOOP("S&ave state"), Qt::Key_F2))