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
Klickety
Commits
a964fd66
Commit
a964fd66
authored
Dec 15, 2020
by
Friedrich W. H. Kossebau
Browse files
Use more memberfunction-pointer-based connections
parent
ef90fcf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
mainwindow.cpp
View file @
a964fd66
...
...
@@ -411,7 +411,8 @@ void MainWindow::setupActions()
QByteArray
(
"Custom"
),
i18n
(
"Custom"
)
));
KgDifficultyGUI
::
init
(
this
);
connect
(
Kg
::
difficulty
(),
SIGNAL
(
currentLevelChanged
(
const
KgDifficultyLevel
*
)),
SLOT
(
newGame
()));
connect
(
Kg
::
difficulty
(),
&
KgDifficulty
::
currentLevelChanged
,
this
,
[
this
]()
{
newGame
(
QRandomGenerator
::
global
()
->
bounded
(
RAND_MAX
));
});
setupGUI
(
QSize
(
340
,
510
)
);
}
...
...
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