all repos — mgba @ db2659962b45e242562c23c4b907eec7ce568464

mGBA Game Boy Advance Emulator

Qt: Fix tr missing or being present where it shouldn't be
Jeffrey Pfau jeffrey@endrift.com
Sun, 05 Apr 2015 01:06:53 -0700
commit

db2659962b45e242562c23c4b907eec7ce568464

parent

4a36c3766ba0acf5ca96998268f72004d4437343

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -715,7 +715,7 @@ connect(setSize, &QAction::triggered, [this, i]() {

showNormal(); resizeFrame(VIDEO_HORIZONTAL_PIXELS * i, VIDEO_VERTICAL_PIXELS * i); }); - addControlledAction(frameMenu, setSize, tr("frame%1x").arg(QString::number(i))); + addControlledAction(frameMenu, setSize, QString("frame%1x").arg(QString::number(i))); } addControlledAction(frameMenu, frameMenu->addAction(tr("Fullscreen"), this, SLOT(toggleFullScreen()), QKeySequence("Ctrl+F")), "fullscreen");

@@ -759,7 +759,7 @@ m_config->updateOption("audioBuffers");

avMenu->addSeparator(); - QMenu* target = avMenu->addMenu("FPS target"); + QMenu* target = avMenu->addMenu(tr("FPS target")); ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget"); fpsTargetOption->connect([this](const QVariant& value) { emit fpsTargetChanged(value.toInt());