Browse Source

Also fix combobox list item heights for extruder dropdowns

ChrisTerBeke 7 years ago
parent
commit
3a2b2d3333

+ 16 - 0
resources/qml/Settings/SettingExtruder.qml

@@ -145,5 +145,21 @@ SettingItem
                 color: control.color
             }
         }
+
+        delegate: ItemDelegate
+        {
+            width: control.width
+            height: control.height
+            highlighted: control.highlightedIndex == index
+
+            contentItem: Text
+            {
+                text: modelData.value
+                color: control.contentItem.color
+                font: control.font
+                elide: Text.ElideRight
+                verticalAlignment: Text.AlignVCenter
+            }
+        }
     }
 }

+ 16 - 0
resources/qml/Settings/SettingOptionalExtruder.qml

@@ -164,5 +164,21 @@ SettingItem
                 color: control.color
             }
         }
+
+        delegate: ItemDelegate
+        {
+            width: control.width
+            height: control.height
+            highlighted: control.highlightedIndex == index
+
+            contentItem: Text
+            {
+                text: modelData.value
+                color: control.contentItem.color
+                font: control.font
+                elide: Text.ElideRight
+                verticalAlignment: Text.AlignVCenter
+            }
+        }
     }
 }