Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kdeplasma-addons/, kde-plasma/kdeplasma-addons/files/
Date: Tue, 23 Nov 2021 14:59:39
Message-Id: 1637679552.ec0f01d6f203167651da922e1277807af2c5abac.asturm@gentoo
1 commit: ec0f01d6f203167651da922e1277807af2c5abac
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 15 15:04:22 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 23 14:59:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec0f01d6
7
8 kde-plasma/kdeplasma-addons: weather-applet: fix cursor
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 ...deplasma-addons-5.23.3-weather-fix-cursor.patch | 35 ++++++++++++++++++++++
14 .../kdeplasma-addons-5.23.3-r1.ebuild | 1 +
15 2 files changed, 36 insertions(+)
16
17 diff --git a/kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.23.3-weather-fix-cursor.patch b/kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.23.3-weather-fix-cursor.patch
18 new file mode 100644
19 index 000000000000..d5b5ea84f609
20 --- /dev/null
21 +++ b/kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.23.3-weather-fix-cursor.patch
22 @@ -0,0 +1,35 @@
23 +From ea18868f6b49577b1349438d6e058199705a25b0 Mon Sep 17 00:00:00 2001
24 +From: Bharadwaj Raju <bharadwaj.raju777@××××××××××.com>
25 +Date: Fri, 12 Nov 2021 15:55:50 +0000
26 +Subject: [PATCH] applets/weather: Make cursor a pointing hand when hovering
27 + over source link
28 +
29 +Currently it's a normal pointer, which doesn't indicate that it's a clickable link.
30 +
31 +
32 +(cherry picked from commit 508fde69075026db28e7078a7e105acf1cc9c102)
33 +---
34 + applets/weather/package/contents/ui/FullRepresentation.qml | 7 +++++++
35 + 1 file changed, 7 insertions(+)
36 +
37 +diff --git a/applets/weather/package/contents/ui/FullRepresentation.qml b/applets/weather/package/contents/ui/FullRepresentation.qml
38 +index dc1583032..4a6d4bdff 100644
39 +--- a/applets/weather/package/contents/ui/FullRepresentation.qml
40 ++++ b/applets/weather/package/contents/ui/FullRepresentation.qml
41 +@@ -40,6 +40,13 @@ ColumnLayout {
42 +
43 + Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
44 +
45 ++ MouseArea {
46 ++ anchors.fill: parent
47 ++ hoverEnabled: true
48 ++ acceptedButtons: Qt.NoButton
49 ++ cursorShape: !!parent.creditUrl ? Qt.PointingHandCursor : Qt.ArrowCursor
50 ++ }
51 ++
52 + wrapMode: Text.WordWrap
53 + horizontalAlignment: Text.AlignRight
54 + font {
55 +--
56 +GitLab
57 +
58
59 diff --git a/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.23.3-r1.ebuild b/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.23.3-r1.ebuild
60 index 73d939f3bafb..cbcb1e038b78 100644
61 --- a/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.23.3-r1.ebuild
62 +++ b/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.23.3-r1.ebuild
63 @@ -56,6 +56,7 @@ RDEPEND="${DEPEND}
64
65 PATCHES=(
66 "${FILESDIR}"/${P}-mediaframe-fix-path-URLs.patch
67 + "${FILESDIR}"/${P}-weather-fix-cursor.patch
68 )
69
70 src_configure() {