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
af46dc40
Commit
af46dc40
authored
Aug 15, 2015
by
Don Gagne
Browse files
Add new API
parent
eb676850
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/QGCApplication.cc
View file @
af46dc40
...
...
@@ -772,3 +772,13 @@ MavManager* QGCApplication::getMavManager()
{
return
_pMavManager
;
}
void
QGCApplication
::
showToolBarMessage
(
const
QString
&
message
)
{
MainWindow
*
mainWindow
=
MainWindow
::
instance
();
if
(
mainWindow
)
{
mainWindow
->
getMainToolBar
()
->
showToolBarMessage
(
message
);
}
else
{
QGCMessageBox
::
information
(
""
,
message
);
}
}
src/QGCApplication.h
View file @
af46dc40
...
...
@@ -107,6 +107,9 @@ public:
/// MavManager accessor
MavManager
*
getMavManager
();
/// Show a non-modal message to the user
void
showToolBarMessage
(
const
QString
&
message
);
public
slots
:
/// You can connect to this slot to show an information message box from a different thread.
void
informationMessageBoxOnMainThread
(
const
QString
&
title
,
const
QString
&
msg
);
...
...
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