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
f185e875
Commit
f185e875
authored
Jul 30, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make buttons bigger
parent
034b658a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
CustomCameraControl.qml
custom-example/res/CustomCameraControl.qml
+10
-8
CustomModeIndicator.qml
custom-example/res/MainToolbar/CustomModeIndicator.qml
+8
-6
No files found.
custom-example/res/CustomCameraControl.qml
View file @
f185e875
...
@@ -965,23 +965,25 @@ Item {
...
@@ -965,23 +965,25 @@ Item {
contentHeight
:
comboListCol
.
height
contentHeight
:
comboListCol
.
height
contentWidth
:
comboListCol
.
width
contentWidth
:
comboListCol
.
width
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
Column
{
Column
Layout
{
id
:
comboListCol
id
:
comboListCol
spacing
:
ScreenTools
.
defaultFontPixelHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
QGCLabel
{
QGCLabel
{
text
:
qsTr
(
"
Thermal Palettes
"
)
text
:
qsTr
(
"
Thermal Palettes
"
)
anchors.horizontalCenter
:
parent
.
horizontal
Center
Layout.alignment
:
Qt
.
AlignH
Center
}
}
Repeater
{
Repeater
{
model
:
_irPaletteFact
?
_irPaletteFact
.
enumStrings
:
[]
model
:
_irPaletteFact
?
_irPaletteFact
.
enumStrings
:
[]
QGCButton
{
QGCButton
{
text
:
modelData
text
:
modelData
width
:
ScreenTools
.
defaultFontPixelWidth
*
30
Layout.minimumHeight
:
ScreenTools
.
defaultFontPixelHeight
*
3
height
:
ScreenTools
.
defaultFontPixelHeight
*
2
Layout.minimumWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
checked
:
index
===
_irPaletteFact
.
value
Layout.fillHeight
:
true
anchors.horizontalCenter
:
parent
.
horizontalCenter
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
checked
:
index
===
_irPaletteFact
.
value
onClicked
:
{
onClicked
:
{
_irPaletteFact
.
value
=
index
_irPaletteFact
.
value
=
index
thermalPalettes
.
close
()
thermalPalettes
.
close
()
...
...
custom-example/res/MainToolbar/CustomModeIndicator.qml
View file @
f185e875
...
@@ -73,21 +73,23 @@ Item {
...
@@ -73,21 +73,23 @@ Item {
border.color
:
qgcPal
.
text
border.color
:
qgcPal
.
text
radius
:
ScreenTools
.
defaultFontPixelWidth
radius
:
ScreenTools
.
defaultFontPixelWidth
}
}
Column
{
Column
Layout
{
id
:
comboListCol
id
:
comboListCol
spacing
:
ScreenTools
.
defaultFontPixelHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
anchors.centerIn
:
parent
anchors.centerIn
:
parent
QGCLabel
{
QGCLabel
{
text
:
qsTr
(
"
Flight Modes
"
)
text
:
qsTr
(
"
Flight Modes
"
)
anchors.horizontalCenter
:
parent
.
horizontal
Center
Layout.alignment
:
Qt
.
AlignH
Center
}
}
Repeater
{
Repeater
{
model
:
activeVehicle
?
activeVehicle
.
flightModes
:
[
]
model
:
activeVehicle
?
activeVehicle
.
flightModes
:
[
]
QGCButton
{
QGCButton
{
text
:
modelData
text
:
modelData
width
:
ScreenTools
.
defaultFontPixelWidth
*
30
Layout.minimumHeight
:
ScreenTools
.
defaultFontPixelHeight
*
3
height
:
ScreenTools
.
defaultFontPixelHeight
*
2
Layout.minimumWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
anchors.horizontalCenter
:
parent
.
horizontalCenter
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
onClicked
:
{
onClicked
:
{
activeVehicle
.
flightMode
=
modelData
activeVehicle
.
flightMode
=
modelData
flightModesMenu
.
close
()
flightModesMenu
.
close
()
...
...
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