Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Fix encoding error on RPI
Browse files Browse the repository at this point in the history
Update qtquickcontrols recipe : remove renderType parameters in some qml files

[GDP-332] Encoding problems in qml-example on gdp master using a RPI2/3

Signed-off-by: Zeeshan Ali <[email protected]>
  • Loading branch information
nicolas4119 authored and zeenix committed Dec 13, 2016
1 parent 3349f45 commit 774300e
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 9cf1db27878a02307febce96ff23487a15d30ecb Mon Sep 17 00:00:00 2001
From: a629114 <[email protected]>
Date: Thu, 1 Sep 2016 16:34:31 +0200
Subject: [PATCH] Correct label on RPI

---
src/controls/Label.qml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/controls/Label.qml b/src/controls/Label.qml
index b07e96d..9835df3 100644
--- a/src/controls/Label.qml
+++ b/src/controls/Label.qml
@@ -82,8 +82,7 @@ Text {

id: label
color: pal.windowText
- activeFocusOnTab: false
- renderType: Settings.isMobile ? Text.QtRendering : Text.NativeRendering
+ activeFocusOnTab: false
SystemPalette {
id: pal
colorGroup: enabled ? SystemPalette.Active : SystemPalette.Disabled
--
2.1.4

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From a62b5180444055b05b9723f125fb5312d514e733 Mon Sep 17 00:00:00 2001
From: a629114 <[email protected]>
Date: Thu, 1 Sep 2016 16:39:35 +0200
Subject: [PATCH 2/2] Correct textfield on RPI

---
src/controls/TextField.qml | 3 ---
1 file changed, 3 deletions(-)

diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml
index c5d5d2b..fbe5581 100644
--- a/src/controls/TextField.qml
+++ b/src/controls/TextField.qml
@@ -629,7 +629,6 @@ Control {
color: __panel ? __panel.placeholderTextColor : "darkgray"
clip: contentWidth > width;
elide: Text.ElideRight
- renderType: __style ? __style.renderType : Text.NativeRendering
}

TextInputWithHandles {
@@ -656,8 +655,6 @@ Control {
color: __panel ? __panel.textColor : "darkgray"
clip: contentWidth > width

- renderType: __style ? __style.renderType : Text.NativeRendering
-
Keys.forwardTo: textfield

EnterKey.type: control.EnterKey.type
--
2.1.4

6 changes: 6 additions & 0 deletions meta-genivi-dev/recipes-qt/qt5/qtquickcontrols_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"

SRC_URI_append_rpi = "\
file://0001-Correct-label-on-RPI.patch \
file://0002-Correct-textfield-on-RPI.patch \
"

0 comments on commit 774300e

Please sign in to comment.