summaryrefslogtreecommitdiff
path: root/components/ComboBox.qml
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-07-17 14:18:54 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-08-08 16:39:29 +0200
commit063eb0bbaa37964e86c102f0d6d2aaff2fb4bce9 (patch)
treedd4e3178cb47bd1706279a74da6d20335a3fcfcb /components/ComboBox.qml
parentaf0fe556ead3f0321e63bdfd436f4429f65f403f (diff)
downloadqtquickcontrols-qt5-nativetext.tar.gz
Use the renderType property to get native textwip/qt5-nativetextqt5-nativetext
The property was recently introduced and allows enabling the system font rasterizer. Change-Id: I2aee4b88e743c169eac5d5f06ff185ec347511e7 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
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