Skip to content
Snippets Groups Projects
Commit 9242e6b8 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

Project: Use Qt5 connection


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent aab27d34
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ Project::initSettings()
QT_TRANSLATE_NOOP( "PreferenceWidget", "Project name" ),
QT_TRANSLATE_NOOP( "PreferenceWidget", "The project name" ),
SettingValue::NotEmpty );
connect( pName, SIGNAL( changed( QVariant ) ), this, SLOT( projectNameChanged( QVariant ) ) );
connect( pName, &SettingValue::changed, this, [this]( const QVariant& var ){ emit projectNameChanged( var.toString() ); } );
connect( fps, &SettingValue::changed, this, [this]( const QVariant& var ){ emit fpsChanged( var.toDouble() ); } );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment