Browse Source

Merge pull request #6197 from DonLakeFlyer/ButtonFocus

Set focus on button and checkbox click
QGC4.4
Don Gagne 7 years ago committed by GitHub
parent
commit
65d71cf584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/QmlControls/QGCButton.qml
  2. 2
      src/QmlControls/QGCCheckBox.qml

2
src/QmlControls/QGCButton.qml

@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0 @@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0
Button {
activeFocusOnPress: true
property bool primary: false ///< primary button for a group of buttons
property real pointSize: ScreenTools.defaultFontPointSize ///< Point size for button text

2
src/QmlControls/QGCCheckBox.qml

@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0 @@ -6,6 +6,8 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0
CheckBox {
activeFocusOnPress: true
property var __qgcPal: QGCPalette { colorGroupEnabled: enabled }
style: CheckBoxStyle {

Loading…
Cancel
Save