Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KSquares
Commits
eb9b161b
Commit
eb9b161b
authored
Oct 03, 2021
by
Antoni Bella Pérez
🚵🏻
Browse files
Add @title:window helpers to GUI messages
parent
d9b9090c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ksquareswindow.cpp
View file @
eb9b161b
...
...
@@ -198,7 +198,7 @@ void KSquaresWindow::gameOver(const QVector<KSquaresPlayer> &_playerList)
//m_scene->displayScoreTable(playerList);
ScoresDialog
scoresDialog
(
this
);
scoresDialog
.
setWindowTitle
(
i18n
(
"Scores"
));
scoresDialog
.
setWindowTitle
(
i18n
c
(
"@title:window"
,
"Scores"
));
QStandardItemModel
*
scoreTableModel
=
new
QStandardItemModel
(
&
scoresDialog
);
scoreTableModel
->
setRowCount
(
playerList
.
size
());
...
...
src/newgamedialog.cpp
View file @
eb9b161b
...
...
@@ -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
(
i18n
c
(
"@title:window"
,
"New Game"
));
connect
(
spinNumOfPlayers
,
static_cast
<
void
(
QSpinBox
::*
)(
int
)
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
NewGameDialog
::
adjustEnabledUsers
);
adjustEnabledUsers
(
spinNumOfPlayers
->
value
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment