summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-30 11:12:20 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-30 11:19:54 -0700
commitafdcccc9fef0d16153d03266facf6c1c624c1d8d (patch)
tree235f4bbe1de7b5d3636ac0b6d5da98aa6120a492 /mobile-widgets
parentf29278b700db51f62670a61bfa7de8e4719be932 (diff)
downloadsubsurface-afdcccc9fef0d16153d03266facf6c1c624c1d8d.tar.gz
mobile/dive-edit: fix broken editable combo boxes
This is a partial revert of commit 99438121c4 ("mobile/dive-edit: use template components and theme colors") Clearly the information given in the Qt documentation on how to theme ComboBox is flat out broken. The trade-off between 'better dark theme' and 'broken user experience' is fairly easy to make. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml45
1 files changed, 0 insertions, 45 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index a888cfcd5..f5307786d 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -161,11 +161,6 @@ Item {
id: locationBox
editable: true
flat: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
manager.locationList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -273,11 +268,6 @@ Item {
id: suitBox
editable: true
flat: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
manager.suitList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -299,11 +289,6 @@ Item {
Controls.ComboBox {
id: buddyBox
editable: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
manager.buddyList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -325,11 +310,6 @@ Item {
Controls.ComboBox {
id: divemasterBox
editable: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
manager.divemasterList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -365,11 +345,6 @@ Item {
Controls.ComboBox {
id: cylinderBox0
flat: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
diveDetailsListView.currentItem.modelData.cylinderList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -427,11 +402,6 @@ Item {
visible: usedCyl[1] != null ? true : false
id: cylinderBox1
flat: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
diveDetailsListView.currentItem.modelData.cylinderList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -496,11 +466,6 @@ Item {
id: cylinderBox2
currentIndex: find(usedCyl[2])
flat: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
diveDetailsListView.currentItem.modelData.cylinderList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -564,11 +529,6 @@ Item {
id: cylinderBox3
currentIndex: find(usedCyl[3])
flat: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
diveDetailsListView.currentItem.modelData.cylinderList : null
inputMethodHints: Qt.ImhNoPredictiveText
@@ -633,11 +593,6 @@ Item {
id: cylinderBox4
currentIndex: find(usedCyl[4])
flat: true
- contentItem: Text {
- text: parent.displayText
- color: subsurfaceTheme.textColor
- verticalAlignment: Text.AlignVCenter
- }
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
diveDetailsListView.currentItem.modelData.cylinderList : null
inputMethodHints: Qt.ImhNoPredictiveText