[vlmc-devel] Core: Use Qt5-style connect

Yikai Lu git at videolan.org
Tue Apr 12 14:28:02 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Apr 12 15:44:34 2016 +0900| [5d95d9c5d777f4c0382f1e06abad4b216f70a35d] | committer: Hugo Beauzée-Luyssen

Core: Use Qt5-style connect

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

> https://code.videolan.org/videolan/vlmc/commit/5d95d9c5d777f4c0382f1e06abad4b216f70a35d
---

 src/Main/Core.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Main/Core.cpp b/src/Main/Core.cpp
index 2d496e1..2d57d23 100644
--- a/src/Main/Core.cpp
+++ b/src/Main/Core.cpp
@@ -57,8 +57,7 @@ Core::Core()
     connect( m_undoStack, &QUndoStack::cleanChanged, m_currentProject, &Project::cleanChanged );
     connect( m_currentProject, &Project::projectSaved, m_undoStack, &QUndoStack::setClean );
     connect( m_library, &Library::cleanStateChanged, m_currentProject, &Project::libraryCleanChanged );
-    connect( m_currentProject, SIGNAL( projectLoaded( QString, QString ) ),
-             m_recentProjects, SLOT( projectLoaded( QString, QString ) ) );
+    connect( m_currentProject, &Project::projectLoaded, m_recentProjects, &RecentProjects::projectLoaded );
     connect( m_currentProject, &Project::projectClosed, m_library, &Library::clear );
     connect( m_currentProject, &Project::projectClosed, m_workflow, &MainWorkflow::clear );
 



More information about the Vlmc-devel mailing list