Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
luyikei
VLMC
Commits
3a0b6f91
Commit
3a0b6f91
authored
Aug 21, 2016
by
luyikei
Committed by
Hugo Beauzée-Luyssen
Sep 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project: Pass projectName and projectFilePath on the projectSaved signal
Signed-off-by:
Hugo Beauzée-Luyssen
<
hugo@beauzee.fr
>
parent
51292d2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/Project/Project.cpp
src/Project/Project.cpp
+3
-2
src/Project/Project.h
src/Project/Project.h
+1
-3
No files found.
src/Project/Project.cpp
View file @
3a0b6f91
...
...
@@ -227,8 +227,9 @@ void
Project
::
saveProject
(
const
QString
&
fileName
)
{
m_settings
->
setSettingsFile
(
fileName
);
m_settings
->
save
();
emit
projectSaved
();
bool
ret
=
m_settings
->
save
();
if
(
ret
==
true
)
emit
projectSaved
(
m_settings
->
value
(
"vlmc/ProjectName"
)
->
get
().
toString
(),
fileName
);
}
void
...
...
src/Project/Project.h
View file @
3a0b6f91
...
...
@@ -106,10 +106,8 @@ class Project : public QObject
/**
* \brief Used to signal that the project has been saved.
*
* Right now, it is only used by the undo stack to flag the current state as clean.
*/
void
projectSaved
();
void
projectSaved
(
const
QString
&
projectName
,
const
QString
&
projectFilePath
);
/**
* @brief cleanStateChanged Emited when the clean state changes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment