Skip to content
GitLab
Menu
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
4cd5cb0e
Commit
4cd5cb0e
authored
Feb 22, 2010
by
Tobias Hunger
Browse files
Save debug server settings in QML RunConfiguration
Reviewed-by: Kai Koehne
parent
b8a73d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp
View file @
4cd5cb0e
...
...
@@ -240,6 +240,7 @@ QVariantMap QmlProjectRunConfiguration::toMap() const
map
.
insert
(
QLatin1String
(
Constants
::
QML_VIEWER_ARGUMENTS_KEY
),
m_qmlViewerArgs
);
map
.
insert
(
QLatin1String
(
Constants
::
QML_MAINSCRIPT_KEY
),
m_scriptFile
);
map
.
insert
(
QLatin1String
(
Constants
::
QML_DEBUG_SERVER_PORT_KEY
),
m_debugServerPort
);
map
.
insert
(
QLatin1String
(
Constants
::
QML_DEBUG_SERVER_ADDRESS_KEY
),
m_debugServerAddress
);
return
map
;
}
...
...
@@ -249,6 +250,7 @@ bool QmlProjectRunConfiguration::fromMap(const QVariantMap &map)
m_qmlViewerArgs
=
map
.
value
(
QLatin1String
(
Constants
::
QML_VIEWER_ARGUMENTS_KEY
)).
toString
();
m_scriptFile
=
map
.
value
(
QLatin1String
(
Constants
::
QML_MAINSCRIPT_KEY
),
tr
(
"<Current File>"
)).
toString
();
m_debugServerPort
=
map
.
value
(
QLatin1String
(
Constants
::
QML_DEBUG_SERVER_PORT_KEY
),
Constants
::
QML_DEFAULT_DEBUG_SERVER_PORT
).
toUInt
();
m_debugServerAddress
=
map
.
value
(
QLatin1String
(
Constants
::
QML_DEBUG_SERVER_ADDRESS_KEY
),
QLatin1String
(
"127.0.0.1"
)).
toString
();
return
RunConfiguration
::
fromMap
(
map
);
}
...
...
Write
Preview
Supports
Markdown
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