Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
edd1e84b
Commit
edd1e84b
authored
Dec 17, 2008
by
dt
Browse files
Fixes: Restore and save settings for RunSettings.
Details: Not the most pressing problem, but easy to fix.
parent
208e50f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp
View file @
edd1e84b
...
...
@@ -87,11 +87,15 @@ ProjectExplorer::Environment CMakeRunConfiguration::environment() const
void
CMakeRunConfiguration
::
save
(
ProjectExplorer
::
PersistentSettingsWriter
&
writer
)
const
{
ProjectExplorer
::
ApplicationRunConfiguration
::
save
(
writer
);
writer
.
saveValue
(
"CMakeRunConfiguration.Target"
,
m_target
);
writer
.
saveValue
(
"CMakeRunConfiguration.WorkingDirectory"
,
m_workingDirectory
);
}
void
CMakeRunConfiguration
::
restore
(
const
ProjectExplorer
::
PersistentSettingsReader
&
reader
)
{
ProjectExplorer
::
ApplicationRunConfiguration
::
restore
(
reader
);
m_target
=
reader
.
restoreValue
(
"CMakeRunConfiguration.Target"
).
toString
();
m_workingDirectory
=
reader
.
restoreValue
(
"CMakeRunConfiguration.WorkingDirectory"
).
toString
();
}
QWidget
*
CMakeRunConfiguration
::
configurationWidget
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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