[vlmc-devel] [PATCH 1/3] Change const QString& projectPath to const QString& projectFilePath

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Mar 14 21:06:22 CET 2016


On 03/12/2016 07:30 AM, Yikai Lu wrote:
> Now that we decided to save a project file inside its project folder, having both projectName and projectPath as parameters will be confusing
> ---
>  src/Project/Project.cpp | 4 ++--
>  src/Project/Project.h   | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/Project/Project.cpp b/src/Project/Project.cpp
> index dee00e9..39a79c9 100644
> --- a/src/Project/Project.cpp
> +++ b/src/Project/Project.cpp
> @@ -172,11 +172,11 @@ Project::saveAs( const QString& fileName )
>  }
>  
>  void
> -Project::newProject( const QString& projectName, const QString& projectPath )
> +Project::newProject( const QString& projectName, const QString& projectFilePath )
>  {
>      closeProject();
>      m_settings->setValue( "vlmc/ProjectName", projectName );
> -    m_projectFile = new QFile( projectPath );
> +    m_projectFile = new QFile( projectFilePath );
>      save();
>  }
>  
> diff --git a/src/Project/Project.h b/src/Project/Project.h
> index 17062d3..508277f 100644
> --- a/src/Project/Project.h
> +++ b/src/Project/Project.h
> @@ -56,7 +56,7 @@ class Project : public QObject
>  
>          void            save();
>          void            saveAs(const QString& fileName);
> -        void            newProject( const QString& projectName, const QString& projectPath );
> +        void            newProject( const QString& projectName, const QString& projectFilePath );
>          /**
>           *  @brief          Check for a project backup file, and load the appropriate file,
>           *                  according to the user input.
> 
All 3 applied, thanks!

-- 
Hugo Beauzée-Luyssen
www.beauzee.fr


More information about the Vlmc-devel mailing list