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

Add @title:window helpers to GUI messages

parent d9b9090c
......@@ -198,7 +198,7 @@ void KSquaresWindow::gameOver(const QVector<KSquaresPlayer> &_playerList)
//m_scene->displayScoreTable(playerList);
ScoresDialog scoresDialog(this);
scoresDialog.setWindowTitle(i18n("Scores"));
scoresDialog.setWindowTitle(i18nc("@title:window", "Scores"));
QStandardItemModel *scoreTableModel = new QStandardItemModel(&scoresDialog);
scoreTableModel->setRowCount(playerList.size());
......
......@@ -25,7 +25,7 @@ NewGameDialog::NewGameDialog(QWidget *parent) : QDialog(parent)
connect(buttonBox, &QDialogButtonBox::accepted, this, &NewGameDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &NewGameDialog::reject);
mainLayout->addWidget(buttonBox);
setWindowTitle(i18n("New Game"));
setWindowTitle(i18nc("@title:window", "New Game"));
connect(spinNumOfPlayers, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &NewGameDialog::adjustEnabledUsers);
adjustEnabledUsers(spinNumOfPlayers->value());
......
Supports Markdown
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