public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
Date: Sat,  9 Apr 2022 16:07:12 +0000 (UTC)	[thread overview]
Message-ID: <1649520183.ff9bcc1edee6c26984367ce9757b2dd5cf18dcf6.asturm@gentoo> (raw)

commit:     ff9bcc1edee6c26984367ce9757b2dd5cf18dcf6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  9 15:25:57 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Apr  9 16:03:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff9bcc1e

kde-frameworks/kirigami: ListItemDragHandle: Emit moveRequest

...when cursor enters a new index

Upstream commit a507a48e979c5881f65faac973a5b82b925e8642
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=451014

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ....92.0-ListItemDragHandle-emit-moveRequest.patch | 28 +++++++++++++
 kde-frameworks/kirigami/kirigami-5.92.0-r1.ebuild  | 48 ++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/kde-frameworks/kirigami/files/kirigami-5.92.0-ListItemDragHandle-emit-moveRequest.patch b/kde-frameworks/kirigami/files/kirigami-5.92.0-ListItemDragHandle-emit-moveRequest.patch
new file mode 100644
index 000000000000..bf6f5c6a7012
--- /dev/null
+++ b/kde-frameworks/kirigami/files/kirigami-5.92.0-ListItemDragHandle-emit-moveRequest.patch
@@ -0,0 +1,28 @@
+From a507a48e979c5881f65faac973a5b82b925e8642 Mon Sep 17 00:00:00 2001
+From: Tranter Madi <trmdi@yandex.com>
+Date: Tue, 29 Mar 2022 02:20:03 +0000
+Subject: [PATCH] ListItemDragHandle: Emit moveRequest when cursor enters a new
+ index
+
+BUG: 451014
+FIXED-IN: 5.93
+---
+ src/controls/ListItemDragHandle.qml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/controls/ListItemDragHandle.qml b/src/controls/ListItemDragHandle.qml
+index 1c2edb1b..20c527db 100644
+--- a/src/controls/ListItemDragHandle.qml
++++ b/src/controls/ListItemDragHandle.qml
+@@ -126,7 +126,7 @@ Item {
+             function arrangeItem() {
+                 var newIndex = listView.indexAt(1, listView.contentItem.mapFromItem(listItem, 0, 0).y + internal.mouseDownY);
+ 
+-                if (Math.abs(listItem.y - internal.startY) > height && newIndex > -1 && newIndex !== index) {
++                if (newIndex > -1 && newIndex !== index) {
+                     root.moveRequested(index, newIndex);
+                 }
+             }
+-- 
+GitLab
+

diff --git a/kde-frameworks/kirigami/kirigami-5.92.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-5.92.0-r1.ebuild
new file mode 100644
index 000000000000..7e8aac8529eb
--- /dev/null
+++ b/kde-frameworks/kirigami/kirigami-5.92.0-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_EXAMPLES="true"
+ECM_QTHELP="false"
+ECM_TEST="true"
+KDE_ORG_NAME="${PN}2"
+QTMIN=5.15.2
+inherit ecm kde.org
+
+DESCRIPTION="Lightweight user interface framework for mobile and convergent applications"
+HOMEPAGE="https://techbase.kde.org/Kirigami"
+EGIT_REPO_URI="${EGIT_REPO_URI/${PN}2/${PN}}"
+
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE=""
+
+# requires package to already be installed
+RESTRICT="test"
+
+BDEPEND="
+	>=dev-qt/linguist-tools-${QTMIN}:5
+"
+DEPEND="
+	>=dev-qt/qtconcurrent-${QTMIN}:5
+	>=dev-qt/qtdbus-${QTMIN}:5
+	>=dev-qt/qtdeclarative-${QTMIN}:5
+	>=dev-qt/qtgui-${QTMIN}:5
+	>=dev-qt/qtnetwork-${QTMIN}:5
+	>=dev-qt/qtquickcontrols2-${QTMIN}:5
+	>=dev-qt/qtsvg-${QTMIN}:5
+"
+RDEPEND="${DEPEND}
+	>=dev-qt/qtgraphicaleffects-${QTMIN}:5
+"
+
+PATCHES=( "${FILESDIR}/${P}-ListItemDragHandle-emit-moveRequest.patch" ) # KDE-bug 451014
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_EXAMPLES=$(usex examples)
+	)
+
+	ecm_src_configure
+}


             reply	other threads:[~2022-04-09 16:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-09 16:07 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-23 14:59 [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/ Andreas Sturmlechner
2020-09-29 12:49 Andreas Sturmlechner
2019-11-20 15:45 Andreas Sturmlechner
2019-11-20 12:22 Andreas Sturmlechner
2017-11-04  0:14 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1649520183.ff9bcc1edee6c26984367ce9757b2dd5cf18dcf6.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox