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
98936a41
Commit
98936a41
authored
Aug 15, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor UI fixes
parent
eb5a54c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
DebugConsole.cc
src/ui/DebugConsole.cc
+8
-1
QGCToolBar.cc
src/ui/QGCToolBar.cc
+4
-0
No files found.
src/ui/DebugConsole.cc
View file @
98936a41
...
...
@@ -30,6 +30,7 @@ This file is part of the QGROUNDCONTROL project
*/
#include <QPainter>
#include <QSettings>
#include <QScrollBar>
#include "DebugConsole.h"
#include "ui_DebugConsole.h"
...
...
@@ -313,9 +314,15 @@ void DebugConsole::receiveTextMessage(int id, int component, int severity, QStri
break
;
}
//turn off updates while we're appending content to avoid breaking the autoscroll behavior
m_ui
->
receiveText
->
setUpdatesEnabled
(
false
);
QScrollBar
*
scroller
=
m_ui
->
receiveText
->
verticalScrollBar
();
m_ui
->
receiveText
->
appendHtml
(
QString
(
"<font color=
\"
%1
\"
>(%2:%3) %4</font>
\n
"
).
arg
(
UASManager
::
instance
()
->
getUASForId
(
id
)
->
getColor
().
name
(),
name
,
comp
,
text
));
// Ensure text area scrolls correctly
m_ui
->
receiveText
->
ensureCursorVisible
();
scroller
->
setValue
(
scroller
->
maximum
());
m_ui
->
receiveText
->
setUpdatesEnabled
(
true
);
}
}
...
...
src/ui/QGCToolBar.cc
View file @
98936a41
...
...
@@ -75,6 +75,8 @@ 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
);
toolBarMessageLabel
->
hide
();
}
else
{
...
...
@@ -82,6 +84,8 @@ void QGCToolBar::heartbeatTimeout(bool timeout, unsigned int ms)
if
(
toolBarTimeoutAction
->
isVisible
())
{
toolBarTimeoutAction
->
setVisible
(
false
);
toolBarMessageLabel
->
show
();
}
}
}
...
...
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