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
5203eac9
Commit
5203eac9
authored
May 17, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make map less chatty and have it stop flickering the screen
parent
9f0f311a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
QGCMapToolBar.cc
src/ui/map/QGCMapToolBar.cc
+5
-5
No files found.
src/ui/map/QGCMapToolBar.cc
View file @
5203eac9
...
@@ -202,7 +202,7 @@ void QGCMapToolBar::setUpdateInterval()
...
@@ -202,7 +202,7 @@ void QGCMapToolBar::setUpdateInterval()
if
(
ok
)
if
(
ok
)
{
{
map
->
setUpdateRateLimit
(
time
);
map
->
setUpdateRateLimit
(
time
);
ui
->
posLabel
->
setText
(
tr
(
"
Map update rate l
imit: %1 second%2"
).
arg
(
time
).
arg
((
time
!=
1.0
f
)
?
"s"
:
""
));
ui
->
posLabel
->
setText
(
tr
(
"
L
imit: %1 second%2"
).
arg
(
time
).
arg
((
time
!=
1.0
f
)
?
"s"
:
""
));
}
}
}
}
}
}
...
@@ -219,14 +219,14 @@ void QGCMapToolBar::setMapType()
...
@@ -219,14 +219,14 @@ void QGCMapToolBar::setMapType()
if
(
ok
)
if
(
ok
)
{
{
map
->
SetMapType
((
MapType
::
Types
)
mapType
);
map
->
SetMapType
((
MapType
::
Types
)
mapType
);
ui
->
posLabel
->
setText
(
tr
(
"Map
type
: %1"
).
arg
(
mapType
));
ui
->
posLabel
->
setText
(
tr
(
"Map: %1"
).
arg
(
mapType
));
}
}
}
}
}
}
void
QGCMapToolBar
::
tileLoadStart
()
void
QGCMapToolBar
::
tileLoadStart
()
{
{
ui
->
posLabel
->
setText
(
tr
(
"
Starting to load tiles
.."
));
ui
->
posLabel
->
setText
(
tr
(
"
Loading
.."
));
}
}
void
QGCMapToolBar
::
tileLoadEnd
()
void
QGCMapToolBar
::
tileLoadEnd
()
...
@@ -238,11 +238,11 @@ void QGCMapToolBar::tileLoadProgress(int progress)
...
@@ -238,11 +238,11 @@ void QGCMapToolBar::tileLoadProgress(int progress)
{
{
if
(
progress
==
1
)
if
(
progress
==
1
)
{
{
ui
->
posLabel
->
setText
(
tr
(
"1 tile
to load..
"
));
ui
->
posLabel
->
setText
(
tr
(
"1 tile"
));
}
}
else
if
(
progress
>
0
)
else
if
(
progress
>
0
)
{
{
ui
->
posLabel
->
setText
(
tr
(
"%1 tile
s to load..
"
).
arg
(
progress
));
ui
->
posLabel
->
setText
(
tr
(
"%1 tile"
).
arg
(
progress
));
}
}
else
else
{
{
...
...
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