Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
8cdc7f9f
Commit
8cdc7f9f
authored
Dec 29, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Qml API
parent
671a465f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
LinkManager.cc
src/comm/LinkManager.cc
+10
-0
LinkManager.h
src/comm/LinkManager.h
+4
-1
No files found.
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
Markdown
is supported
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