Unverified Commit 65d71cf5 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6197 from DonLakeFlyer/ButtonFocus

Set focus on button and checkbox click
parents 0c8da5af 3ac26bd5
...@@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0 ...@@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0 import QGroundControl.ScreenTools 1.0
Button { Button {
activeFocusOnPress: true
property bool primary: false ///< primary button for a group of buttons property bool primary: false ///< primary button for a group of buttons
property real pointSize: ScreenTools.defaultFontPointSize ///< Point size for button text property real pointSize: ScreenTools.defaultFontPointSize ///< Point size for button text
......
...@@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0 ...@@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0 import QGroundControl.ScreenTools 1.0
CheckBox { CheckBox {
activeFocusOnPress: true
property var __qgcPal: QGCPalette { colorGroupEnabled: enabled } property var __qgcPal: QGCPalette { colorGroupEnabled: enabled }
style: CheckBoxStyle { style: CheckBoxStyle {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment