Commit a964fd66 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use more memberfunction-pointer-based connections

parent ef90fcf1
...@@ -411,7 +411,8 @@ void MainWindow::setupActions() ...@@ -411,7 +411,8 @@ void MainWindow::setupActions()
QByteArray( "Custom" ), i18n( "Custom" ) QByteArray( "Custom" ), i18n( "Custom" )
)); ));
KgDifficultyGUI::init(this); 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 ) ); setupGUI( QSize( 340, 510 ) );
} }
......
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