[vlmc-devel] [PATCH 1/2] Change const QString& projectPath to const QString& projectFolderPath
Yikai Lu
luyikei.qmltu at gmail.com
Wed Mar 9 05:57:00 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 6c36d83..3432a52 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& projectFolderPath )
{
closeProject();
m_settings->setValue( "vlmc/ProjectName", projectName );
- m_projectFile = new QFile( projectPath );
+ m_projectFile = new QFile( projectFolderPath );
save();
}
diff --git a/src/Project/Project.h b/src/Project/Project.h
index 3d53d05..1fb16ec 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& projectFolderPath );
/**
* @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