summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-30 14:01:07 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-01 11:35:39 -0800
commit0a88d9839cae52e3f64606c8f3a61caea95aa98f (patch)
treeb01b6d265669bdf1e930f5b92d022daa59fec577
parent2d6710bdeffd0d40da10ccbe0a7a148fd7df1244 (diff)
downloadsubsurface-0a88d9839cae52e3f64606c8f3a61caea95aa98f.tar.gz
mobile UI: avoid circular dependency
The relevant text field names are different depending on whether our combo box is editable or not. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/TemplateComboBox.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/TemplateComboBox.qml b/mobile-widgets/qml/TemplateComboBox.qml
index e51c7d060..4d5844a88 100644
--- a/mobile-widgets/qml/TemplateComboBox.qml
+++ b/mobile-widgets/qml/TemplateComboBox.qml
@@ -53,7 +53,7 @@ ComboBox {
anchors.left: cb.left
leftPadding: Kirigami.Units.smallSpacing
rightPadding: Kirigami.Units.smallSpacing
- text: cb.displayText
+ text: readOnly ? cb.displayText : cb.editText
font: cb.font
color: subsurfaceTheme.textColor
verticalAlignment: Text.AlignVCenter