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
Tobias Hunger
qt-creator
Commits
fb1ef427
Commit
fb1ef427
authored
Nov 26, 2009
by
dt
Browse files
Remove setValue/value from Project
parent
592c1fba
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/project.cpp
View file @
fb1ef427
...
...
@@ -143,8 +143,6 @@ void Project::saveSettingsImpl(PersistentSettingsWriter &writer)
// For compability with older versions the "name" is saved as a string instead of a number
writer
.
saveValue
(
"activebuildconfiguration"
,
QString
::
number
(
bcs
.
indexOf
(
m_activeBuildConfiguration
)));
//save m_values
writer
.
saveValue
(
"project"
,
m_values
);
//save buildsettings
QStringList
buildConfigurationNames
;
...
...
@@ -206,8 +204,6 @@ void Project::saveSettingsImpl(PersistentSettingsWriter &writer)
bool
Project
::
restoreSettingsImpl
(
PersistentSettingsReader
&
reader
)
{
m_values
=
reader
.
restoreValue
(
"project"
).
toMap
();
const
QList
<
IBuildStepFactory
*>
buildStepFactories
=
ExtensionSystem
::
PluginManager
::
instance
()
->
getObjects
<
IBuildStepFactory
>
();
...
...
@@ -380,21 +376,6 @@ bool Project::restoreSettingsImpl(PersistentSettingsReader &reader)
return
true
;
}
void
Project
::
setValue
(
const
QString
&
name
,
const
QVariant
&
value
)
{
m_values
.
insert
(
name
,
value
);
}
QVariant
Project
::
value
(
const
QString
&
name
)
const
{
QMap
<
QString
,
QVariant
>::
const_iterator
it
=
m_values
.
find
(
name
);
if
(
it
!=
m_values
.
constEnd
())
return
it
.
value
();
else
return
QVariant
();
}
BuildConfiguration
*
Project
::
activeBuildConfiguration
()
const
{
return
m_activeBuildConfiguration
;
//TODO
...
...
src/plugins/projectexplorer/project.h
View file @
fb1ef427
...
...
@@ -93,9 +93,6 @@ public:
virtual
IBuildConfigurationFactory
*
buildConfigurationFactory
()
const
=
0
;
void
setValue
(
const
QString
&
name
,
const
QVariant
&
value
);
QVariant
value
(
const
QString
&
name
)
const
;
// Running
QList
<
RunConfiguration
*>
runConfigurations
()
const
;
void
addRunConfiguration
(
RunConfiguration
*
runConfiguration
);
...
...
@@ -162,7 +159,6 @@ protected:
virtual
bool
restoreSettingsImpl
(
PersistentSettingsReader
&
reader
);
private:
QMap
<
QString
,
QVariant
>
m_values
;
QList
<
BuildConfiguration
*>
m_buildConfigurationValues
;
BuildConfiguration
*
m_activeBuildConfiguration
;
QList
<
RunConfiguration
*>
m_runConfigurations
;
...
...
src/plugins/qt4projectmanager/qmakestep.cpp
View file @
fb1ef427
...
...
@@ -261,6 +261,7 @@ QString QMakeStepConfigWidget::summaryText() const
void
QMakeStepConfigWidget
::
qtVersionChanged
()
{
Q_UNUSED
(
bc
)
updateTitleLabel
();
updateEffectiveQMakeCall
();
}
...
...
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