Commit 09a56c4f authored by J-P Nurmi's avatar J-P Nurmi
Browse files

Android/SwitchStyle: hide thumb text on Android 5.0


Change-Id: Ied63a5bd58a88f097ac9e20f30c21d45f45a2f46
Reviewed-by: default avatarCaroline Chao <caroline.chao@theqtcompany.com>
Showing with 3 additions and 0 deletions
...@@ -79,6 +79,8 @@ SwitchStyle { ...@@ -79,6 +79,8 @@ SwitchStyle {
Item { Item {
id: thumb id: thumb
readonly property bool hideText: AndroidStyle.styleDef.switchStyle.Switch_showText === false
x: control.checked ? max : min x: control.checked ? max : min
TextMetrics { TextMetrics {
...@@ -126,6 +128,7 @@ SwitchStyle { ...@@ -126,6 +128,7 @@ SwitchStyle {
LabelStyle { LabelStyle {
id: label id: label
visible: !thumb.hideText
text: control.checked ? panel.styleDef.Switch_textOn : panel.styleDef.Switch_textOff text: control.checked ? panel.styleDef.Switch_textOn : panel.styleDef.Switch_textOff
pressed: control.pressed pressed: control.pressed
......
Supports Markdown
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