Signed-off-by: Eric Ruei <[email protected]> --- ...0001-touchinteraction.qml-Add-exit-button.patch | 60 ++++++++++++++++++++++ .../recipes-qt/qt5/qtdeclarative_git.bbappend | 7 +++ 2 files changed, 67 insertions(+) create mode 100644 meta-arago-distro/recipes-qt/qt5/qtdeclarative/0001-touchinteraction.qml-Add-exit-button.patch create mode 100644 meta-arago-distro/recipes-qt/qt5/qtdeclarative_git.bbappend
diff --git a/meta-arago-distro/recipes-qt/qt5/qtdeclarative/0001-touchinteraction.qml-Add-exit-button.patch b/meta-arago-distro/recipes-qt/qt5/qtdeclarative/0001-touchinteraction.qml-Add-exit-button.patch new file mode 100644 index 0000000..c7ae8d1 --- /dev/null +++ b/meta-arago-distro/recipes-qt/qt5/qtdeclarative/0001-touchinteraction.qml-Add-exit-button.patch @@ -0,0 +1,60 @@ +From 9048b28bde9bf4375f539885eeaa1f92dd2eb258 Mon Sep 17 00:00:00 2001 +From: Eric Ruei <[email protected]> +Date: Tue, 16 Aug 2016 15:09:04 -0400 +Subject: [PATCH] touchinteraction.qml: Add "exit" button + +Signed-off-by: Eric Ruei <[email protected]> +--- + .../quick/touchinteraction/touchinteraction.qml | 38 ++++++++++++++++++++++ + 1 file changed, 38 insertions(+) + +diff --git a/examples/quick/touchinteraction/touchinteraction.qml b/examples/quick/touchinteraction/touchinteraction.qml +index 2ffb513..2c6934c 100644 +--- a/examples/quick/touchinteraction/touchinteraction.qml ++++ b/examples/quick/touchinteraction/touchinteraction.qml +@@ -55,4 +55,42 @@ Item { + addExample("Corkboards", "Uses touch input on items inside a Flickable", Qt.resolvedUrl("flickable/corkboards.qml")); + } + } ++ ++ Item { ++ id: exit ++ ++ width: parent.width / 10 ++ height: parent.height /10 ++ ++ anchors { ++ bottom: parent.bottom ++ left: parent.left ++ bottomMargin: 40 ++ } ++ ++ Rectangle { ++ id: bgr ++ anchors.fill: parent ++ color: mouseArea.pressed ? "#757575" : "#212121" ++ radius: height / 15 ++ ++ Text { ++ id: text ++ anchors.centerIn: parent ++ text: "Exit" ++ font.pixelSize: 0.4 * parent.height ++ color: mouseArea.pressed ? "black" : "white" ++ horizontalAlignment: Text.AlignHCenter ++ verticalAlignment: Text.AlignVCenter ++ } ++ ++ MouseArea { ++ id: mouseArea ++ anchors.fill: parent ++ onClicked: { ++ Qt.quit() ++ } ++ } ++ } ++ } + } +-- +1.9.1 + diff --git a/meta-arago-distro/recipes-qt/qt5/qtdeclarative_git.bbappend b/meta-arago-distro/recipes-qt/qt5/qtdeclarative_git.bbappend new file mode 100644 index 0000000..cc0f9d6 --- /dev/null +++ b/meta-arago-distro/recipes-qt/qt5/qtdeclarative_git.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +PR_append = ".tisdk0" + +SRC_URI += " \ + file://0001-touchinteraction.qml-Add-exit-button.patch \ +" + -- 1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
