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
29e7d8dd
Commit
29e7d8dd
authored
Jul 28, 2019
by
Stefan Dunca
Browse files
Add external Zoom buttons
parent
64a93570
Changes
1
Hide whitespace changes
Inline
Side-by-side
custom-example/res/CustomCameraControl.qml
View file @
29e7d8dd
...
...
@@ -161,15 +161,20 @@ Item {
sourceSize.height
:
height
}
}
// Thermal with color-map
QGCHoverButton
{
width
:
buttonSize
height
:
width
checkable
:
true
radius
:
buttonRadius
function
isDesiredThermalPalette
(
name
)
{
return
name
===
'
Rainbow
'
;
}
onClicked
:
{
if
(
_irPaletteFact
)
{
var
entryIdx
=
_irPaletteFact
.
enumStrings
.
find
(
"
Rainbow
"
)
var
entryIdx
=
_irPaletteFact
.
enumStrings
.
find
(
isDesiredThermalPalette
)
if
(
entryIdx
!==
undefined
)
{
_irPaletteFact
.
value
=
entryIdx
;
}
...
...
@@ -421,7 +426,7 @@ Item {
ZoomControl
{
id
:
zoomControl
visible
:
_hasZoom
mainColor
:
qgcPal
.
window
mainColor
:
qgcPal
.
window
Shade
contentColor
:
qgcPal
.
text
fontPointSize
:
ScreenTools
.
defaultFontPointSize
*
1.25
zoomLevelVisible
:
false
...
...
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