diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2012-07-17 14:18:54 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2012-08-08 16:39:29 +0200 |
commit | 063eb0bbaa37964e86c102f0d6d2aaff2fb4bce9 (patch) | |
tree | dd4e3178cb47bd1706279a74da6d20335a3fcfcb /components/TableView.qml | |
parent | af0fe556ead3f0321e63bdfd436f4429f65f403f (diff) | |
download | qtquickcontrols-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/TableView.qml')
-rw-r--r-- | components/TableView.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/TableView.qml b/components/TableView.qml index 8df6fe9b..14bf1517 100644 --- a/components/TableView.qml +++ b/components/TableView.qml @@ -168,12 +168,14 @@ FocusScope{ elide: itemElideMode text: itemValue ? itemValue : "" color: itemForeground + renderType: Desktop.nativeTextRendering ? Text.NativeRendering : Text.QtRendering } Text { id: sizehint font: label.font text: itemValue ? itemValue : "" visible: false + renderType: Desktop.nativeTextRendering ? Text.NativeRendering : Text.QtRendering } } } @@ -432,7 +434,7 @@ FocusScope{ } - Text{ id:text } + Text{ id:text; renderType: Desktop.nativeTextRendering ? Text.NativeRendering : Text.QtRendering } Item { id: tableColumn |