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

Yikai Lu luyikei.qmltu at gmail.com
Sat Mar 12 07:30:51 CET 2016


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.
-- 
1.9.1



More information about the Vlmc-devel mailing list