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
Valentin Platzgummer
qgroundcontrol
Commits
8cdc7f9f
Commit
8cdc7f9f
authored
Dec 29, 2016
by
Don Gagne
Browse files
Fix Qml API
parent
671a465f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/comm/LinkManager.cc
View file @
8cdc7f9f
...
...
@@ -99,6 +99,16 @@ void LinkManager::setToolbox(QGCToolbox *toolbox)
}
// This should only be used by Qml code
void
LinkManager
::
createConnectedLink
(
LinkConfiguration
*
config
)
{
for
(
int
i
=
0
;
i
<
_sharedConfigurations
.
count
();
i
++
)
{
SharedLinkConfigurationPointer
&
sharedConf
=
_sharedConfigurations
[
i
];
if
(
sharedConf
->
name
()
==
config
->
name
())
createConnectedLink
(
sharedConf
);
}
}
LinkInterface
*
LinkManager
::
createConnectedLink
(
SharedLinkConfigurationPointer
&
config
)
{
if
(
!
config
)
{
...
...
src/comm/LinkManager.h
View file @
8cdc7f9f
...
...
@@ -124,7 +124,10 @@ public:
/// Creates, connects (and adds) a link based on the given configuration instance.
/// Link takes ownership of config.
Q_INVOKABLE
LinkInterface
*
createConnectedLink
(
SharedLinkConfigurationPointer
&
config
);
LinkInterface
*
createConnectedLink
(
SharedLinkConfigurationPointer
&
config
);
// This should only be used by Qml code
Q_INVOKABLE
void
createConnectedLink
(
LinkConfiguration
*
config
);
/// Creates, connects (and adds) a link based on the given configuration name.
LinkInterface
*
createConnectedLink
(
const
QString
&
name
);
...
...
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