summaryrefslogtreecommitdiff
path: root/components/ComboBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/ComboBox.qml')
-rw-r--r--components/ComboBox.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/ComboBox.qml b/components/ComboBox.qml
index 69aff685..4545a5ff 100644
--- a/components/ComboBox.qml
+++ b/components/ComboBox.qml
@@ -112,10 +112,16 @@ Private.BasicButton {
raised: !sunken
hover: comboBox.containsMouse
enabled: comboBox.enabled
- text: comboBox.selectedText
+ //text: comboBox.selectedText
hasFocus: comboBox.focus
contentHeight: 18
Component.onCompleted: popup.center = styleHint("comboboxpopup");
+ Text {
+ id: textItem
+ text: comboBox.selectedText
+ anchors.centerIn: parent
+ renderType: Desktop.nativeTextRendering ? Text.NativeRendering : Text.QtRendering
+ }
}
// ToDo: adjust margins so that selected popup label