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
5322c774
Commit
5322c774
authored
Sep 06, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final toolbar tweaks
parent
85485285
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
QGCToolBar.cc
src/ui/QGCToolBar.cc
+4
-2
QGCToolBar.h
src/ui/QGCToolBar.h
+2
-0
No files found.
src/ui/QGCToolBar.cc
View file @
5322c774
...
...
@@ -78,6 +78,7 @@ void QGCToolBar::heartbeatTimeout(bool timeout, unsigned int ms)
toolBarTimeoutLabel
->
setText
(
tr
(
"CONNECTION LOST: %1 s"
).
arg
((
ms
/
1000.0
f
),
2
,
'f'
,
1
,
' '
));
toolBarTimeoutAction
->
setVisible
(
true
);
toolBarMessageAction
->
setVisible
(
false
);
toolBarBatteryBarAction
->
setVisible
(
false
);
}
else
{
...
...
@@ -86,6 +87,7 @@ void QGCToolBar::heartbeatTimeout(bool timeout, unsigned int ms)
{
toolBarTimeoutAction
->
setVisible
(
false
);
toolBarMessageAction
->
setVisible
(
true
);
toolBarBatteryBarAction
->
setVisible
(
true
);
}
}
}
...
...
@@ -136,13 +138,13 @@ void QGCToolBar::createUI()
toolBarBatteryBar
->
setToolTip
(
tr
(
"Battery charge level"
));
toolBarBatteryBar
->
setObjectName
(
"toolBarBatteryBar"
);
toolBarBatteryBar
->
setSizePolicy
(
QSizePolicy
::
Minimum
,
QSizePolicy
::
MinimumExpanding
);
addWidget
(
toolBarBatteryBar
);
toolBarBatteryBarAction
=
addWidget
(
toolBarBatteryBar
);
toolBarBatteryVoltageLabel
=
new
QLabel
(
this
);
toolBarBatteryVoltageLabel
->
setToolTip
(
tr
(
"Battery voltage"
));
toolBarBatteryVoltageLabel
->
setObjectName
(
"toolBarBatteryVoltageLabel"
);
toolBarBatteryVoltageLabel
->
setAlignment
(
Qt
::
AlignCenter
);
addWidget
(
toolBarBatteryVoltageLabel
);
toolBarBatteryVoltageAction
=
addWidget
(
toolBarBatteryVoltageLabel
);
toolBarWpLabel
=
new
QLabel
(
this
);
toolBarWpLabel
->
setToolTip
(
tr
(
"Current waypoint"
));
...
...
src/ui/QGCToolBar.h
View file @
5322c774
...
...
@@ -113,6 +113,8 @@ protected:
QAction
*
toolBarPortAction
;
QAction
*
toolBarBaudAction
;
QAction
*
toolBarWpAction
;
QAction
*
toolBarBatteryBarAction
;
QAction
*
toolBarBatteryVoltageAction
;
QLabel
*
toolBarSafetyLabel
;
QLabel
*
toolBarModeLabel
;
QLabel
*
toolBarStateLabel
;
...
...
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