[vlmc-devel] Project: Use Qt5 connection

Yikai Lu git at videolan.org
Tue Aug 23 18:01:10 CEST 2016


vlmc | branch: medialibrary | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug 22 20:42:23 2016 -0500| [9242e6b891f6dec0bf0591f2091fde58a7754b88] | committer: Hugo Beauzée-Luyssen

Project: Use Qt5 connection

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/9242e6b891f6dec0bf0591f2091fde58a7754b88
---

 src/Project/Project.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Project/Project.cpp b/src/Project/Project.cpp
index 382856f..1576a5e 100644
--- a/src/Project/Project.cpp
+++ b/src/Project/Project.cpp
@@ -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() ); } );
 }
 



More information about the Vlmc-devel mailing list