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
6bbd1bb1
Commit
6bbd1bb1
authored
Sep 18, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved toolbar updates
parent
5f34008e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
QGCToolBar.cc
src/ui/QGCToolBar.cc
+8
-1
No files found.
src/ui/QGCToolBar.cc
View file @
6bbd1bb1
...
...
@@ -258,6 +258,7 @@ void QGCToolBar::updateView()
toolBarModeLabel
->
setText
(
tr
(
"%1"
).
arg
(
mode
));
toolBarNameLabel
->
setText
(
systemName
);
toolBarMessageLabel
->
setText
(
lastSystemMessage
);
changed
=
false
;
}
void
QGCToolBar
::
updateWaypointDistance
(
double
distance
)
...
...
@@ -268,6 +269,7 @@ void QGCToolBar::updateWaypointDistance(double distance)
void
QGCToolBar
::
updateCurrentWaypoint
(
quint16
id
)
{
if
(
wpId
!=
id
)
changed
=
true
;
wpId
=
id
;
}
...
...
@@ -275,6 +277,7 @@ void QGCToolBar::updateBatteryRemaining(UASInterface* uas, double voltage, doubl
{
Q_UNUSED
(
uas
);
Q_UNUSED
(
seconds
);
if
(
batteryPercent
!=
percent
||
batteryVoltage
!=
voltage
)
changed
=
true
;
batteryPercent
=
percent
;
batteryVoltage
=
voltage
;
}
...
...
@@ -283,6 +286,7 @@ void QGCToolBar::updateState(UASInterface* system, QString name, QString descrip
{
Q_UNUSED
(
system
);
Q_UNUSED
(
description
);
if
(
state
!=
name
)
changed
=
true
;
state
=
name
;
}
...
...
@@ -290,11 +294,13 @@ void QGCToolBar::updateMode(int system, QString name, QString description)
{
Q_UNUSED
(
system
);
Q_UNUSED
(
description
);
mode
=
state
;
if
(
mode
!=
name
)
changed
=
true
;
mode
=
name
;
}
void
QGCToolBar
::
updateName
(
const
QString
&
name
)
{
if
(
systemName
!=
name
)
changed
=
true
;
systemName
=
name
;
}
...
...
@@ -339,6 +345,7 @@ void QGCToolBar::receiveTextMessage(int uasid, int componentid, int severity, QS
Q_UNUSED
(
uasid
);
Q_UNUSED
(
componentid
);
Q_UNUSED
(
severity
);
if
(
lastSystemMessage
!=
text
)
changed
=
true
;
lastSystemMessage
=
text
;
}
...
...
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