mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-01-09 06:23:21 +08:00
Blind-fix Qt
This commit is contained in:
parent
77b9a6e2e8
commit
a42f71c9ba
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user