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
2dbc1818
Commit
2dbc1818
authored
Sep 27, 2010
by
Friedemann Kleint
Browse files
Debugger: Move dialogs settings out of the global settings namespace.
Add legacy to retrieve old values.
parent
580bf35a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerplugin.cpp
View file @
2dbc1818
...
...
@@ -932,10 +932,8 @@ public slots:
{
return
qobject_cast
<
DebuggerMainWindow
*>
(
DebuggerUISwitcher
::
instance
()
->
mainWindow
());
}
void
setConfigValue
(
const
QString
&
name
,
const
QVariant
&
value
)
{
settings
()
->
setValue
(
name
,
value
);
}
QVariant
configValue
(
const
QString
&
name
)
const
{
return
settings
()
->
value
(
name
);
}
inline
void
setConfigValue
(
const
QString
&
name
,
const
QVariant
&
value
);
inline
QVariant
configValue
(
const
QString
&
name
)
const
;
DebuggerRunControl
*
createDebugger
(
const
DebuggerStartParameters
&
sp
,
RunConfiguration
*
rc
=
0
);
...
...
@@ -1676,6 +1674,20 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *er
return
true
;
}
void
DebuggerPluginPrivate
::
setConfigValue
(
const
QString
&
name
,
const
QVariant
&
value
)
{
settings
()
->
setValue
(
_
(
"DebugMode/"
)
+
name
,
value
);
}
QVariant
DebuggerPluginPrivate
::
configValue
(
const
QString
&
name
)
const
{
const
QVariant
value
=
settings
()
->
value
(
_
(
"DebugMode/"
)
+
name
);
if
(
value
.
isValid
())
return
value
;
// Legacy (pre-2.1): Check old un-namespaced-settings.
return
settings
()
->
value
(
name
);
}
void
DebuggerPluginPrivate
::
onCurrentProjectChanged
(
Project
*
project
)
{
RunConfiguration
*
activeRc
=
0
;
...
...
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