Commit c2384b7f authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

Add @title:window helpers to GUI messages

parent 0c18f1c3
...@@ -67,7 +67,7 @@ Editor::Editor(QWidget * parent) ...@@ -67,7 +67,7 @@ Editor::Editor(QWidget * parent)
setMinimumHeight(120); setMinimumHeight(120);
// tell the user what we do // tell the user what we do
setWindowTitle(i18n("Edit Board Layout")); setWindowTitle(i18nc("@title:window", "Edit Board Layout"));
connect(m_drawFrame, &FrameImage::mousePressed, this, &Editor::drawFrameMousePressEvent); connect(m_drawFrame, &FrameImage::mousePressed, this, &Editor::drawFrameMousePressEvent);
connect(m_drawFrame, &FrameImage::mouseMoved, this, &Editor::drawFrameMouseMovedEvent); connect(m_drawFrame, &FrameImage::mouseMoved, this, &Editor::drawFrameMouseMovedEvent);
......
...@@ -227,7 +227,7 @@ void KMahjongg::displayTime(const QString & timestring) ...@@ -227,7 +227,7 @@ void KMahjongg::displayTime(const QString & timestring)
void KMahjongg::startNewNumeric() void KMahjongg::startNewNumeric()
{ {
bool ok; bool ok;
int s = QInputDialog::getInt(this, i18n("New Game"), i18n("Enter game number:"), 0, 0, INT_MAX, 1, &ok); int s = QInputDialog::getInt(this, i18nc("@title:window", "New Game"), i18n("Enter game number:"), 0, 0, INT_MAX, 1, &ok);
if (ok) { if (ok) {
startNewGameWithNumber(s); startNewGameWithNumber(s);
...@@ -585,7 +585,7 @@ void KMahjongg::restartGame() ...@@ -585,7 +585,7 @@ void KMahjongg::restartGame()
void KMahjongg::loadGame() void KMahjongg::loadGame()
{ {
const QString filename = QFileDialog::getOpenFileName(this, i18n("Load Game"), QString(), i18n("KMahjongg Game (*.kmgame)")); const QString filename = QFileDialog::getOpenFileName(this, i18nc("@title:window", "Load Game"), QString(), i18n("KMahjongg Game (*.kmgame)"));
if (filename.isEmpty()) { if (filename.isEmpty()) {
return; return;
...@@ -660,7 +660,7 @@ void KMahjongg::saveGame() ...@@ -660,7 +660,7 @@ void KMahjongg::saveGame()
{ {
m_gameTimer->pause(); m_gameTimer->pause();
const QString filename = QFileDialog::getSaveFileName(this, i18n("Save Game"), QString(), i18n("KMahjongg Game (*.kmgame)")); const QString filename = QFileDialog::getSaveFileName(this, i18nc("@title:window", "Save Game"), QString(), i18n("KMahjongg Game (*.kmgame)"));
if (filename.isEmpty()) { if (filename.isEmpty()) {
m_gameTimer->resume(); m_gameTimer->resume();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment