public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
@ 2017-11-04  0:14 Michael Palimaka
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Palimaka @ 2017-11-04  0:14 UTC (permalink / raw
  To: gentoo-commits

commit:     b0af7b2ae386501831921a5843f57a6845a0b300
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  4 00:12:06 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Nov  4 00:14:11 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0af7b2a

kde-frameworks/kirigami: backport patch from upstream solving runtime failure with Qt 5.7

Closes: https://bugs.gentoo.org/634564
Package-Manager: Portage-2.3.8, Repoman-2.3.4

 .../kirigami/files/kirigami-5.39.0-qt57.patch      | 27 +++++++++++++
 kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild  | 45 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/kde-frameworks/kirigami/files/kirigami-5.39.0-qt57.patch b/kde-frameworks/kirigami/files/kirigami-5.39.0-qt57.patch
new file mode 100644
index 00000000000..de33976061d
--- /dev/null
+++ b/kde-frameworks/kirigami/files/kirigami-5.39.0-qt57.patch
@@ -0,0 +1,27 @@
+From eed28bbd8aec29cb9a045a5188ceb0e27ff33344 Mon Sep 17 00:00:00 2001
+From: Marco Martin <notmart@gmail.com>
+Date: Fri, 3 Nov 2017 16:57:11 +0100
+Subject: [PATCH] syntax working on older Qt 5.7
+
+BUG:385785
+---
+ src/controls/Page.qml | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/controls/Page.qml b/src/controls/Page.qml
+index c2d0307..4498e40 100644
+--- a/src/controls/Page.qml
++++ b/src/controls/Page.qml
+@@ -256,7 +256,8 @@ T2.Page {
+             right: parent.right
+             bottom: parent.bottom
+         }
+-        property T2.Page page: root
++        //It should be T2.Page, Qt 5.7 doesn't like it
++        property Item page: root
+         height: item ? item.height : 0
+         source: (applicationWindow().header && applicationWindow().header.toString().indexOf("ToolBarApplicationHeader") === 0) ||
+                 (applicationWindow().footer && applicationWindow().footer.visible && applicationWindow().footer.toString().indexOf("ToolBarApplicationHeader") === 0)
+-- 
+2.13.6
+

diff --git a/kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild
new file mode 100644
index 00000000000..f18881398a7
--- /dev/null
+++ b/kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_EXAMPLES="true"
+KDE_QTHELP="false"
+KDE_TEST="forceoptional"
+KMNAME="${PN}2"
+inherit kde5
+
+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 ~x86"
+IUSE="plasma"
+
+RDEPEND="
+	$(add_qt_dep qtdeclarative)
+	$(add_qt_dep qtgraphicaleffects)
+	$(add_qt_dep qtgui)
+	$(add_qt_dep qtnetwork)
+	$(add_qt_dep qtquickcontrols2)
+	$(add_qt_dep qtsvg)
+	plasma? ( $(add_frameworks_dep plasma) )
+"
+DEPEND="${RDEPEND}
+	$(add_qt_dep linguist-tools)
+"
+
+# requires package to already be installed
+RESTRICT+=" test"
+
+PATCHES=( "${FILESDIR}/${P}-qt57.patch" )
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_EXAMPLES=$(usex examples)
+		-DPLASMA_ENABLED=$(usex plasma)
+	)
+
+	kde5_src_configure
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
@ 2019-11-20 12:22 Andreas Sturmlechner
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Sturmlechner @ 2019-11-20 12:22 UTC (permalink / raw
  To: gentoo-commits

commit:     471cbd8bf886bc106b881305488f4ace817ac3ea
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 11:08:04 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 12:21:00 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=471cbd8b

kde-frameworks/kirigami: Fix systemsettings crash

See also: https://mail.kde.org/pipermail/release-team/2019-November/011662.html
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=414003
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...one-qmlcomponentspool-instance-per-engine.patch | 178 +++++++++++++++++++++
 kde-frameworks/kirigami/kirigami-5.64.0-r1.ebuild  |  48 ++++++
 2 files changed, 226 insertions(+)

diff --git a/kde-frameworks/kirigami/files/kirigami-5.64.0-one-qmlcomponentspool-instance-per-engine.patch b/kde-frameworks/kirigami/files/kirigami-5.64.0-one-qmlcomponentspool-instance-per-engine.patch
new file mode 100644
index 00000000000..3613a8bf2b5
--- /dev/null
+++ b/kde-frameworks/kirigami/files/kirigami-5.64.0-one-qmlcomponentspool-instance-per-engine.patch
@@ -0,0 +1,178 @@
+From 4a9820a6df15a55a7d36d343ce70a25ba7d56b79 Mon Sep 17 00:00:00 2001
+From: David Edmundson <kde@davidedmundson.co.uk>
+Date: Wed, 13 Nov 2019 14:23:19 +0000
+Subject: Make QmlComponentsPool one instance per engine
+
+Summary:
+If we create 2 engines in an application the singleton is initialised to
+the first engine. If that first engine disappears the internal m_unit is
+dangling.
+
+A good example of this is systemsettings in the icon view if we enter
+two modules one after another. It's currently only kept alive because
+the sidebar created the first reference.
+
+BUG: 414003
+
+Test Plan:
+System settings in icon view
+opened global theme
+went back
+open fonts theme
+didn't crash
+
+Subscribers: plasma-devel
+
+Tags: #kirigami
+
+Differential Revision: https://phabricator.kde.org/D25284
+---
+ src/columnview.cpp | 54 +++++++++++++++++++++++++++++++++---------------------
+ src/columnview_p.h |  4 +---
+ 2 files changed, 34 insertions(+), 24 deletions(-)
+
+diff --git a/src/columnview.cpp b/src/columnview.cpp
+index cab89f8..35d591e 100644
+--- a/src/columnview.cpp
++++ b/src/columnview.cpp
+@@ -37,23 +37,37 @@ class QmlComponentsPoolSingleton
+ public:
+     QmlComponentsPoolSingleton()
+     {}
+-
+-    QmlComponentsPool self;
++    static QmlComponentsPool *instance(QQmlEngine *engine);
++private:
++    QHash<QQmlEngine*, QmlComponentsPool*> m_instances;
+ };
+ 
+ Q_GLOBAL_STATIC(QmlComponentsPoolSingleton, privateQmlComponentsPoolSelf)
+ 
+ 
+-QmlComponentsPool::QmlComponentsPool(QObject *parent)
+-    : QObject(parent)
+-{}
+-
+-void QmlComponentsPool::initialize(QQmlEngine *engine)
++QmlComponentsPool *QmlComponentsPoolSingleton::instance(QQmlEngine *engine)
+ {
+-    if (!engine || m_instance) {
+-        return;
++    Q_ASSERT(engine);
++    auto componentPool = privateQmlComponentsPoolSelf->m_instances.value(engine);
++
++    if (componentPool) {
++        return componentPool;
+     }
+ 
++    componentPool = new QmlComponentsPool(engine);
++
++    QObject::connect(componentPool, &QObject::destroyed, [engine]() {
++        if (privateQmlComponentsPoolSelf) {
++            privateQmlComponentsPoolSelf->m_instances.remove(engine);
++        }
++    });
++    privateQmlComponentsPoolSelf->m_instances[engine] = componentPool;
++    return componentPool;
++}
++
++QmlComponentsPool::QmlComponentsPool(QQmlEngine *engine)
++    : QObject(engine)
++{
+     QQmlComponent *component = new QQmlComponent(engine, this);
+ 
+     component->setData(QByteArrayLiteral("import QtQuick 2.7\n"
+@@ -572,12 +586,12 @@ QQuickItem *ContentItem::ensureSeparator(QQuickItem *item)
+     QQuickItem *separatorItem = m_separators.value(item);
+     
+     if (!separatorItem) {
+-        separatorItem = qobject_cast<QQuickItem *>(privateQmlComponentsPoolSelf->self.m_separatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
++        separatorItem = qobject_cast<QQuickItem *>(privateQmlComponentsPoolSelf->instance(qmlEngine(item))->m_separatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
+         if (separatorItem) {
+             separatorItem->setParentItem(item);
+             separatorItem->setZ(9999);
+             separatorItem->setProperty("column", QVariant::fromValue(item));
+-            privateQmlComponentsPoolSelf->self.m_separatorComponent->completeCreate();
++            QmlComponentsPoolSingleton::instance(qmlEngine(item))->m_separatorComponent->completeCreate();
+             m_separators[item] = separatorItem;
+         }
+     }
+@@ -590,12 +604,12 @@ QQuickItem *ContentItem::ensureRightSeparator(QQuickItem *item)
+     QQuickItem *separatorItem = m_rightSeparators.value(item);
+     
+     if (!separatorItem) {
+-        separatorItem = qobject_cast<QQuickItem *>(privateQmlComponentsPoolSelf->self.m_rightSeparatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
++        separatorItem = qobject_cast<QQuickItem *>(QmlComponentsPoolSingleton::instance(qmlEngine(item))->m_rightSeparatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
+         if (separatorItem) {
+             separatorItem->setParentItem(item);
+             separatorItem->setZ(9999);
+             separatorItem->setProperty("column", QVariant::fromValue(item));
+-            privateQmlComponentsPoolSelf->self.m_rightSeparatorComponent->completeCreate();
++            QmlComponentsPoolSingleton::instance(qmlEngine(item))->m_rightSeparatorComponent->completeCreate();
+             m_rightSeparators[item] = separatorItem;
+         }
+     }
+@@ -759,7 +773,7 @@ qreal ColumnView::columnWidth() const
+ void ColumnView::setColumnWidth(qreal width)
+ {
+     // Always forget the internal binding when the user sets anything, even the same value
+-    disconnect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::gridUnitChanged, this, nullptr);
++    disconnect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::gridUnitChanged, this, nullptr);
+ 
+     if (m_contentItem->m_columnWidth == width) {
+         return;
+@@ -902,7 +916,7 @@ int ColumnView::scrollDuration() const
+ 
+ void ColumnView::setScrollDuration(int duration)
+ {
+-    disconnect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::longDurationChanged, this, nullptr);
++    disconnect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::longDurationChanged, this, nullptr);
+ 
+     if (m_contentItem->m_slideAnim->duration() == duration) {
+         return;
+@@ -1392,22 +1406,20 @@ void ColumnView::mouseUngrabEvent()
+ 
+ void ColumnView::classBegin()
+ {
+-    privateQmlComponentsPoolSelf->self.initialize(qmlEngine(this));
+-
+     auto syncColumnWidth = [this]() {
+-        m_contentItem->m_columnWidth = privateQmlComponentsPoolSelf->self.m_units->property("gridUnit").toInt() * 20;
++        m_contentItem->m_columnWidth = privateQmlComponentsPoolSelf->instance(qmlEngine(this))->m_units->property("gridUnit").toInt() * 20;
+         emit columnWidthChanged();
+     };
+ 
+-    connect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::gridUnitChanged, this, syncColumnWidth);
++    connect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::gridUnitChanged, this, syncColumnWidth);
+     syncColumnWidth();
+ 
+     auto syncDuration = [this]() {
+-        m_contentItem->m_slideAnim->setDuration(privateQmlComponentsPoolSelf->self.m_units->property("longDuration").toInt());
++        m_contentItem->m_slideAnim->setDuration(QmlComponentsPoolSingleton::instance(qmlEngine(this))->m_units->property("longDuration").toInt());
+         emit scrollDurationChanged();
+     };
+ 
+-    connect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::longDurationChanged, this, syncDuration);
++    connect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::longDurationChanged, this, syncDuration);
+     syncDuration();
+ 
+     QQuickItem::classBegin();
+diff --git a/src/columnview_p.h b/src/columnview_p.h
+index ebf5543..886b96b 100644
+--- a/src/columnview_p.h
++++ b/src/columnview_p.h
+@@ -32,11 +32,9 @@ class QmlComponentsPool: public QObject
+     Q_OBJECT
+ 
+ public:
+-    QmlComponentsPool(QObject *parent = nullptr);
++    QmlComponentsPool(QQmlEngine *engine);
+     ~QmlComponentsPool();
+ 
+-    void initialize(QQmlEngine *engine);
+-
+     QQmlComponent *m_separatorComponent = nullptr;
+     QQmlComponent *m_rightSeparatorComponent = nullptr;
+     QObject *m_units = nullptr;
+-- 
+cgit v1.1

diff --git a/kde-frameworks/kirigami/kirigami-5.64.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-5.64.0-r1.ebuild
new file mode 100644
index 00000000000..358a9fdf984
--- /dev/null
+++ b/kde-frameworks/kirigami/kirigami-5.64.0-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_EXAMPLES="true"
+ECM_QTHELP="false"
+ECM_TEST="true"
+KDE_ORG_NAME="${PN}2"
+QTMIN=5.12.3
+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 ~x86"
+IUSE=""
+
+# drop qtgui subslot operator when QT_MINIMAL >= 5.14.0
+BDEPEND="
+	>=dev-qt/linguist-tools-${QTMIN}:5
+"
+DEPEND="
+	>=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
+"
+
+# requires package to already be installed
+RESTRICT+=" test"
+
+PATCHES=( "${FILESDIR}/${P}-one-qmlcomponentspool-instance-per-engine.patch" )
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_EXAMPLES=$(usex examples)
+	)
+
+	ecm_src_configure
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
@ 2019-11-20 15:45 Andreas Sturmlechner
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Sturmlechner @ 2019-11-20 15:45 UTC (permalink / raw
  To: gentoo-commits

commit:     99679f6ff2cf9e236725791a6aed35b37af0cd86
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 15:44:16 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 15:45:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99679f6f

kde-frameworks/kirigami: 5.64.1 version bump

See also: https://mail.kde.org/pipermail/release-team/2019-November/011662.html
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=414003
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-frameworks/kirigami/Manifest                   |   2 +-
 ...one-qmlcomponentspool-instance-per-engine.patch | 178 ---------------------
 ...ami-5.64.0-r1.ebuild => kirigami-5.64.1.ebuild} |   2 -
 3 files changed, 1 insertion(+), 181 deletions(-)

diff --git a/kde-frameworks/kirigami/Manifest b/kde-frameworks/kirigami/Manifest
index dac949ca8bd..31a6849b940 100644
--- a/kde-frameworks/kirigami/Manifest
+++ b/kde-frameworks/kirigami/Manifest
@@ -1,2 +1,2 @@
 DIST kirigami2-5.60.0.tar.xz 142232 BLAKE2B 729729b4fae0fcd55a55178074a766b3fad7fb9edee2367ddd2ad61d25e8c082be2c6de221eede6bb5a5b0f6984e0d507cbe69fd1bb73dc6cf4d22746f0d6066 SHA512 e8426e518744172b9c08f198244314ed80bb529af79475c921ed87bb21e031f788e90906e117916b11c10256814016c95583fe835e08e48de4bccda000b5dda2
-DIST kirigami2-5.64.0.tar.xz 154912 BLAKE2B b18ab8fa8c7e8ccaf026bf343f44b4fe12b93cb5ef8e6609e125f131501b6963c0212d30e46eb8509e2027a44eec0b571de87e7c6b82bd97b4bb7ea8f87b9ede SHA512 8fe5b8fb1bf743d27acace5a30960d1ba2cb11d908f1df29014eccb137f12329625346bbc74cb88c9451e80f4e83d8d0fae47d7cf23b4718b1f2199b19a5fe26
+DIST kirigami2-5.64.1.tar.xz 155444 BLAKE2B 4dfe452a36e75ce44ccd78107751bce68d873d1f2837ec0c9010292ef70d6a9f5fa8b093e51dcfd28a72ad836c2b87068f9c9fbf1195b5466630f73459ffa9b3 SHA512 e54854c477e38aead0a69178c47bc3ac9874553af999b273454b4d5d0c9552b65d29775bb9c24ab556a022fd8b0f3b743fda3baa6d1dda61d7b1eceed26a4d53

diff --git a/kde-frameworks/kirigami/files/kirigami-5.64.0-one-qmlcomponentspool-instance-per-engine.patch b/kde-frameworks/kirigami/files/kirigami-5.64.0-one-qmlcomponentspool-instance-per-engine.patch
deleted file mode 100644
index 3613a8bf2b5..00000000000
--- a/kde-frameworks/kirigami/files/kirigami-5.64.0-one-qmlcomponentspool-instance-per-engine.patch
+++ /dev/null
@@ -1,178 +0,0 @@
-From 4a9820a6df15a55a7d36d343ce70a25ba7d56b79 Mon Sep 17 00:00:00 2001
-From: David Edmundson <kde@davidedmundson.co.uk>
-Date: Wed, 13 Nov 2019 14:23:19 +0000
-Subject: Make QmlComponentsPool one instance per engine
-
-Summary:
-If we create 2 engines in an application the singleton is initialised to
-the first engine. If that first engine disappears the internal m_unit is
-dangling.
-
-A good example of this is systemsettings in the icon view if we enter
-two modules one after another. It's currently only kept alive because
-the sidebar created the first reference.
-
-BUG: 414003
-
-Test Plan:
-System settings in icon view
-opened global theme
-went back
-open fonts theme
-didn't crash
-
-Subscribers: plasma-devel
-
-Tags: #kirigami
-
-Differential Revision: https://phabricator.kde.org/D25284
----
- src/columnview.cpp | 54 +++++++++++++++++++++++++++++++++---------------------
- src/columnview_p.h |  4 +---
- 2 files changed, 34 insertions(+), 24 deletions(-)
-
-diff --git a/src/columnview.cpp b/src/columnview.cpp
-index cab89f8..35d591e 100644
---- a/src/columnview.cpp
-+++ b/src/columnview.cpp
-@@ -37,23 +37,37 @@ class QmlComponentsPoolSingleton
- public:
-     QmlComponentsPoolSingleton()
-     {}
--
--    QmlComponentsPool self;
-+    static QmlComponentsPool *instance(QQmlEngine *engine);
-+private:
-+    QHash<QQmlEngine*, QmlComponentsPool*> m_instances;
- };
- 
- Q_GLOBAL_STATIC(QmlComponentsPoolSingleton, privateQmlComponentsPoolSelf)
- 
- 
--QmlComponentsPool::QmlComponentsPool(QObject *parent)
--    : QObject(parent)
--{}
--
--void QmlComponentsPool::initialize(QQmlEngine *engine)
-+QmlComponentsPool *QmlComponentsPoolSingleton::instance(QQmlEngine *engine)
- {
--    if (!engine || m_instance) {
--        return;
-+    Q_ASSERT(engine);
-+    auto componentPool = privateQmlComponentsPoolSelf->m_instances.value(engine);
-+
-+    if (componentPool) {
-+        return componentPool;
-     }
- 
-+    componentPool = new QmlComponentsPool(engine);
-+
-+    QObject::connect(componentPool, &QObject::destroyed, [engine]() {
-+        if (privateQmlComponentsPoolSelf) {
-+            privateQmlComponentsPoolSelf->m_instances.remove(engine);
-+        }
-+    });
-+    privateQmlComponentsPoolSelf->m_instances[engine] = componentPool;
-+    return componentPool;
-+}
-+
-+QmlComponentsPool::QmlComponentsPool(QQmlEngine *engine)
-+    : QObject(engine)
-+{
-     QQmlComponent *component = new QQmlComponent(engine, this);
- 
-     component->setData(QByteArrayLiteral("import QtQuick 2.7\n"
-@@ -572,12 +586,12 @@ QQuickItem *ContentItem::ensureSeparator(QQuickItem *item)
-     QQuickItem *separatorItem = m_separators.value(item);
-     
-     if (!separatorItem) {
--        separatorItem = qobject_cast<QQuickItem *>(privateQmlComponentsPoolSelf->self.m_separatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
-+        separatorItem = qobject_cast<QQuickItem *>(privateQmlComponentsPoolSelf->instance(qmlEngine(item))->m_separatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
-         if (separatorItem) {
-             separatorItem->setParentItem(item);
-             separatorItem->setZ(9999);
-             separatorItem->setProperty("column", QVariant::fromValue(item));
--            privateQmlComponentsPoolSelf->self.m_separatorComponent->completeCreate();
-+            QmlComponentsPoolSingleton::instance(qmlEngine(item))->m_separatorComponent->completeCreate();
-             m_separators[item] = separatorItem;
-         }
-     }
-@@ -590,12 +604,12 @@ QQuickItem *ContentItem::ensureRightSeparator(QQuickItem *item)
-     QQuickItem *separatorItem = m_rightSeparators.value(item);
-     
-     if (!separatorItem) {
--        separatorItem = qobject_cast<QQuickItem *>(privateQmlComponentsPoolSelf->self.m_rightSeparatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
-+        separatorItem = qobject_cast<QQuickItem *>(QmlComponentsPoolSingleton::instance(qmlEngine(item))->m_rightSeparatorComponent->beginCreate(QQmlEngine::contextForObject(item)));
-         if (separatorItem) {
-             separatorItem->setParentItem(item);
-             separatorItem->setZ(9999);
-             separatorItem->setProperty("column", QVariant::fromValue(item));
--            privateQmlComponentsPoolSelf->self.m_rightSeparatorComponent->completeCreate();
-+            QmlComponentsPoolSingleton::instance(qmlEngine(item))->m_rightSeparatorComponent->completeCreate();
-             m_rightSeparators[item] = separatorItem;
-         }
-     }
-@@ -759,7 +773,7 @@ qreal ColumnView::columnWidth() const
- void ColumnView::setColumnWidth(qreal width)
- {
-     // Always forget the internal binding when the user sets anything, even the same value
--    disconnect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::gridUnitChanged, this, nullptr);
-+    disconnect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::gridUnitChanged, this, nullptr);
- 
-     if (m_contentItem->m_columnWidth == width) {
-         return;
-@@ -902,7 +916,7 @@ int ColumnView::scrollDuration() const
- 
- void ColumnView::setScrollDuration(int duration)
- {
--    disconnect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::longDurationChanged, this, nullptr);
-+    disconnect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::longDurationChanged, this, nullptr);
- 
-     if (m_contentItem->m_slideAnim->duration() == duration) {
-         return;
-@@ -1392,22 +1406,20 @@ void ColumnView::mouseUngrabEvent()
- 
- void ColumnView::classBegin()
- {
--    privateQmlComponentsPoolSelf->self.initialize(qmlEngine(this));
--
-     auto syncColumnWidth = [this]() {
--        m_contentItem->m_columnWidth = privateQmlComponentsPoolSelf->self.m_units->property("gridUnit").toInt() * 20;
-+        m_contentItem->m_columnWidth = privateQmlComponentsPoolSelf->instance(qmlEngine(this))->m_units->property("gridUnit").toInt() * 20;
-         emit columnWidthChanged();
-     };
- 
--    connect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::gridUnitChanged, this, syncColumnWidth);
-+    connect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::gridUnitChanged, this, syncColumnWidth);
-     syncColumnWidth();
- 
-     auto syncDuration = [this]() {
--        m_contentItem->m_slideAnim->setDuration(privateQmlComponentsPoolSelf->self.m_units->property("longDuration").toInt());
-+        m_contentItem->m_slideAnim->setDuration(QmlComponentsPoolSingleton::instance(qmlEngine(this))->m_units->property("longDuration").toInt());
-         emit scrollDurationChanged();
-     };
- 
--    connect(&privateQmlComponentsPoolSelf->self, &QmlComponentsPool::longDurationChanged, this, syncDuration);
-+    connect(QmlComponentsPoolSingleton::instance(qmlEngine(this)), &QmlComponentsPool::longDurationChanged, this, syncDuration);
-     syncDuration();
- 
-     QQuickItem::classBegin();
-diff --git a/src/columnview_p.h b/src/columnview_p.h
-index ebf5543..886b96b 100644
---- a/src/columnview_p.h
-+++ b/src/columnview_p.h
-@@ -32,11 +32,9 @@ class QmlComponentsPool: public QObject
-     Q_OBJECT
- 
- public:
--    QmlComponentsPool(QObject *parent = nullptr);
-+    QmlComponentsPool(QQmlEngine *engine);
-     ~QmlComponentsPool();
- 
--    void initialize(QQmlEngine *engine);
--
-     QQmlComponent *m_separatorComponent = nullptr;
-     QQmlComponent *m_rightSeparatorComponent = nullptr;
-     QObject *m_units = nullptr;
--- 
-cgit v1.1

diff --git a/kde-frameworks/kirigami/kirigami-5.64.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-5.64.1.ebuild
similarity index 92%
rename from kde-frameworks/kirigami/kirigami-5.64.0-r1.ebuild
rename to kde-frameworks/kirigami/kirigami-5.64.1.ebuild
index 358a9fdf984..b2497ea6e56 100644
--- a/kde-frameworks/kirigami/kirigami-5.64.0-r1.ebuild
+++ b/kde-frameworks/kirigami/kirigami-5.64.1.ebuild
@@ -37,8 +37,6 @@ RDEPEND="${DEPEND}
 # requires package to already be installed
 RESTRICT+=" test"
 
-PATCHES=( "${FILESDIR}/${P}-one-qmlcomponentspool-instance-per-engine.patch" )
-
 src_configure() {
 	local mycmakeargs=(
 		-DBUILD_EXAMPLES=$(usex examples)


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
@ 2020-09-29 12:49 Andreas Sturmlechner
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Sturmlechner @ 2020-09-29 12:49 UTC (permalink / raw
  To: gentoo-commits

commit:     262b19e8713abd4fa1fd19c202088af7992d0c15
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 29 12:36:54 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Sep 29 12:46:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=262b19e8

kde-frameworks/kirigami: Remove actions/delegates from ToolBarLayout

...when they get destroyed. Fixes (at least) a Discover crash.

Upstream commit 6eaefba5001445fa7e198e4caa0bde738240d66f

KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=425670
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...actions-from-ToolBarLayout-when-destroyed.patch | 40 ++++++++++++++++++++++
 kde-frameworks/kirigami/kirigami-5.74.0-r1.ebuild  |  5 ++-
 2 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/kde-frameworks/kirigami/files/kirigami-5.74.0-remove-actions-from-ToolBarLayout-when-destroyed.patch b/kde-frameworks/kirigami/files/kirigami-5.74.0-remove-actions-from-ToolBarLayout-when-destroyed.patch
new file mode 100644
index 00000000000..192ba9dcf67
--- /dev/null
+++ b/kde-frameworks/kirigami/files/kirigami-5.74.0-remove-actions-from-ToolBarLayout-when-destroyed.patch
@@ -0,0 +1,40 @@
+From 6eaefba5001445fa7e198e4caa0bde738240d66f Mon Sep 17 00:00:00 2001
+From: Arjen Hiemstra <ahiemstra@heimr.nl>
+Date: Wed, 9 Sep 2020 13:00:59 +0200
+Subject: [PATCH] Remove actions and delegates from ToolBarLayout when they get
+ destroyed
+
+Otherwise we're keeping around stale entries that no longer point to
+valid stuff.
+
+BUG: 425670
+---
+ src/toolbarlayout.cpp | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/src/toolbarlayout.cpp b/src/toolbarlayout.cpp
+index cbf31062..c2df5998 100644
+--- a/src/toolbarlayout.cpp
++++ b/src/toolbarlayout.cpp
+@@ -112,6 +112,18 @@ void ToolBarLayout::addAction(QObject* action)
+     d->actions.append(action);
+     d->actionsChanged = true;
+ 
++    connect(action, &QObject::destroyed, this, [this](QObject *action) {
++        auto itr = d->delegates.find(action);
++        if (itr != d->delegates.end()) {
++            d->delegates.erase(itr);
++        }
++
++        d->actions.removeOne(action);
++        d->actionsChanged = true;
++
++        relayout();
++    });
++
+     relayout();
+ }
+ 
+-- 
+GitLab
+

diff --git a/kde-frameworks/kirigami/kirigami-5.74.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-5.74.0-r1.ebuild
index aa5b71a3f17..0064f84f415 100644
--- a/kde-frameworks/kirigami/kirigami-5.74.0-r1.ebuild
+++ b/kde-frameworks/kirigami/kirigami-5.74.0-r1.ebuild
@@ -37,7 +37,10 @@ RDEPEND="${DEPEND}
 # requires package to already be installed
 RESTRICT+=" test"
 
-PATCHES=( "${FILESDIR}"/${P}-revert-fix-avatar-loading.patch )
+PATCHES=(
+	"${FILESDIR}"/${P}-revert-fix-avatar-loading.patch
+	"${FILESDIR}"/${P}-remove-actions-from-ToolBarLayout-when-destroyed.patch
+)
 
 src_configure() {
 	local mycmakeargs=(


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
@ 2021-11-23 14:59 Andreas Sturmlechner
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Sturmlechner @ 2021-11-23 14:59 UTC (permalink / raw
  To: gentoo-commits

commit:     47acd0c95ed6d5cae3026303d7c3fcace06406c4
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 15 14:52:24 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Nov 23 14:59:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47acd0c9

kde-frameworks/kirigami: PageRowGlobalToolBarUI: don't animate opacity

Upstream commit 67ec2a1873e3d750529043b243043cfd2e2f9ec6

KDE-bug: https://bugs.kde.org/show_bug.cgi?id=417636
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...geRowGlobalToolBarUI-dont-animate-opacity.patch | 56 ++++++++++++++++++++++
 kde-frameworks/kirigami/kirigami-5.88.0-r1.ebuild  | 48 +++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/kde-frameworks/kirigami/files/kirigami-5.88.0-PageRowGlobalToolBarUI-dont-animate-opacity.patch b/kde-frameworks/kirigami/files/kirigami-5.88.0-PageRowGlobalToolBarUI-dont-animate-opacity.patch
new file mode 100644
index 000000000000..85b2a24f5909
--- /dev/null
+++ b/kde-frameworks/kirigami/files/kirigami-5.88.0-PageRowGlobalToolBarUI-dont-animate-opacity.patch
@@ -0,0 +1,56 @@
+From 67ec2a1873e3d750529043b243043cfd2e2f9ec6 Mon Sep 17 00:00:00 2001
+From: Nate Graham <nate@kde.org>
+Date: Wed, 10 Nov 2021 20:44:53 -0700
+Subject: [PATCH] PageRowGlobalToolBarUI: don't animate opacity
+
+Doing so causes flickering in System Settings and KInfoCenter because of
+how the titles are rendered. It also doesn't make conceptual sense since
+the style of toolbar generally doesn't change so the user would never
+actually see the animated opacity change in the first place.
+
+BUG: 417636
+FIXED-IN: 5.89
+---
+ .../globaltoolbar/PageRowGlobalToolBarUI.qml        | 13 +++----------
+ 1 file changed, 3 insertions(+), 10 deletions(-)
+
+diff --git a/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml b/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml
+index 640ab51e..c536fed7 100644
+--- a/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml
++++ b/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml
+@@ -106,8 +106,8 @@ Kirigami.AbstractApplicationHeader {
+             Layout.preferredHeight: -1
+             property Kirigami.PageRow pageRow: root
+ 
+-            opacity: layerIsMainRow && active
+-            enabled: opacity > 0
++            visible: layerIsMainRow && active
++            enabled: visible
+ 
+             asynchronous: true
+ 
+@@ -115,13 +115,6 @@ Kirigami.AbstractApplicationHeader {
+ 
+             //TODO: different implementation?
+             source: globalToolBar.actualStyle == Kirigami.ApplicationHeaderStyle.TabBar ? Qt.resolvedUrl("TabBarControl.qml") : Qt.resolvedUrl("BreadcrumbControl.qml")
+-
+-            Behavior on opacity {
+-                OpacityAnimator {
+-                    duration: Kirigami.Units.longDuration
+-                    easing.type: Easing.InOutQuad
+-                }
+-            }
+         }
+ 
+         Item {
+@@ -137,6 +130,6 @@ Kirigami.AbstractApplicationHeader {
+             Layout.preferredWidth: height
+         }
+     }
+-    background.opacity: breadcrumbLoader.opacity
++    background.visible: breadcrumbLoader.visible
+ }
+ 
+-- 
+GitLab
+

diff --git a/kde-frameworks/kirigami/kirigami-5.88.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-5.88.0-r1.ebuild
new file mode 100644
index 000000000000..a161344b23b0
--- /dev/null
+++ b/kde-frameworks/kirigami/kirigami-5.88.0-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 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}-PageRowGlobalToolBarUI-dont-animate-opacity.patch )
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_EXAMPLES=$(usex examples)
+	)
+
+	ecm_src_configure
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
@ 2022-04-09 16:07 Andreas Sturmlechner
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Sturmlechner @ 2022-04-09 16:07 UTC (permalink / raw
  To: gentoo-commits

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
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-04-09 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-09 16:07 [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2021-11-23 14:59 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox