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
e24d2ada
Commit
e24d2ada
authored
Jul 11, 2013
by
Bill Bonney
Browse files
Fixed APM Tool Bar not being populated with link info when switching perspectives
parent
359f8bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/apmtoolbar.cpp
View file @
e24d2ada
...
...
@@ -14,9 +14,12 @@ APMToolBar::APMToolBar(QWidget *parent):
setSource
(
QUrl
::
fromLocalFile
(
"qml/ApmToolBar.qml"
));
setResizeMode
(
QDeclarativeView
::
SizeRootObjectToView
);
QObject
*
root
=
rootObject
();
connect
(
LinkManager
::
instance
(),
SIGNAL
(
newLink
(
LinkInterface
*
)),
this
,
SLOT
(
updateLinkDisplay
(
LinkInterface
*
)));
if
(
LinkManager
::
instance
()
->
getLinks
().
count
()
>=
3
)
{
updateLinkDisplay
(
LinkManager
::
instance
()
->
getLinks
().
last
());
}
}
void
APMToolBar
::
setFlightViewAction
(
QAction
*
action
)
...
...
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