summaryrefslogtreecommitdiff
path: root/src/controls/Label.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-09-18 16:48:25 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-09-19 12:24:18 +0200
commit332ef31f0d1645eded5588729176134bbdcd38a2 (patch)
tree71091684801a123a6b748eb21a51d813943bd3b1 /src/controls/Label.qml
parent85114be06703e7675b6c780776e45c14a69a5c2d (diff)
downloadqtquickcontrols-332ef31f0d1645eded5588729176134bbdcd38a2.tar.gz
Default to Text.QtRendering on mobile platforms
Change-Id: I9aa23691aa8bb4659545ed43c1506128a639ff6c Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/controls/Label.qml')
-rw-r--r--src/controls/Label.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/Label.qml b/src/controls/Label.qml
index e3052f44..0b3a6505 100644
--- a/src/controls/Label.qml
+++ b/src/controls/Label.qml
@@ -39,6 +39,8 @@
****************************************************************************/
import QtQuick 2.2
+import QtQuick.Controls 1.2
+import QtQuick.Controls.Private 1.0
/*!
\qmltype Label
@@ -85,7 +87,7 @@ Text {
id: label
color: pal.windowText
activeFocusOnTab: false
- renderType: Text.NativeRendering
+ renderType: Settings.isMobile ? Text.QtRendering : Text.NativeRendering
SystemPalette {
id: pal
colorGroup: enabled ? SystemPalette.Active : SystemPalette.Disabled