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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Apr 12 14:25:42 CEST 2016


On 04/12/2016 08:44 AM, Yikai Lu wrote:
> ---
>   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 );
>
>
Applied


More information about the Vlmc-devel mailing list