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

Yikai Lu luyikei.qmltu at gmail.com
Tue Apr 12 08:44:34 CEST 2016


---
 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 );
 
-- 
1.9.1



More information about the Vlmc-devel mailing list