From e0f23627e48b82ef5ad389895e30da99e98c16fa Mon Sep 17 00:00:00 2001 From: John Date: Mon, 6 Dec 2021 16:32:52 +0100 Subject: [PATCH] qt6-base: update to 6.2.2. --- srcpkgs/qt6-base/patches/qtbug-97811.patch | 53 ---------------------- srcpkgs/qt6-base/template | 4 +- 2 files changed, 2 insertions(+), 55 deletions(-) delete mode 100644 srcpkgs/qt6-base/patches/qtbug-97811.patch diff --git a/srcpkgs/qt6-base/patches/qtbug-97811.patch b/srcpkgs/qt6-base/patches/qtbug-97811.patch deleted file mode 100644 index e3ea6b09d84..00000000000 --- a/srcpkgs/qt6-base/patches/qtbug-97811.patch +++ /dev/null @@ -1,53 +0,0 @@ -From ffc9323671d045e3566980d9ed4567f071004e65 Mon Sep 17 00:00:00 2001 -From: Volker Hilsheimer -Date: Thu, 28 Oct 2021 16:55:33 +0200 -Subject: Fix performance regression when avoiding scrollbar flipping - -Amends 6c4dc722cb9bf765904feefff4fb00bdb0b3dc9f. - -Don't search for the optimal size of the scrollarea's widget if it can't -be found anyway. Try the size with scrollbar first, which covers the -vast majority of sizes. - -Optimizing the loop with e.g. a binary search adds no value, as the size -is often just a pixel too small. - -Since we can't rely on the number of height-for-width calls, we can't -meaningfully test this behavior. The number of calls is still very high -during showing and resizing; optimizing this further is for a separate -commit. - -Fixes: QTBUG-97811 -Pick-to: 6.2 5.15 -Change-Id: If145302e6414b32cf1ce7251ff33b0039f584867 -Reviewed-by: Jonas Kvinge -Reviewed-by: Richard Moe Gustavsen ---- - src/widgets/widgets/qscrollarea.cpp | 11 +++++++---- - 1 file changed, 7 insertions(+), 4 deletions(-) - -diff --git a/src/widgets/widgets/qscrollarea.cpp b/src/widgets/widgets/qscrollarea.cpp -index f880240ea7..e8fdadb648 100644 ---- a/src/widgets/widgets/qscrollarea.cpp -+++ b/src/widgets/widgets/qscrollarea.cpp -@@ -203,10 +203,13 @@ void QScrollAreaPrivate::updateScrollBars() - if (vbarpolicy == Qt::ScrollBarAsNeeded) { - int vbarWidth = vbar->sizeHint().width(); - QSize m_hfw = m.expandedTo(min).boundedTo(max); -- while (h > m.height() && vbarWidth) { -- --vbarWidth; -- --m_hfw.rwidth(); -- h = widget->heightForWidth(m_hfw.width()); -+ // is there any point in searching? -+ if (widget->heightForWidth(m_hfw.width() - vbarWidth) <= m.height()) { -+ while (h > m.height() && vbarWidth) { -+ --vbarWidth; -+ --m_hfw.rwidth(); -+ h = widget->heightForWidth(m_hfw.width()); -+ } - } - max = QSize(m_hfw.width(), qMax(m_hfw.height(), h)); - } --- -cgit v1.2.1 - diff --git a/srcpkgs/qt6-base/template b/srcpkgs/qt6-base/template index d1bcbe898e9..58a82ac0c35 100644 --- a/srcpkgs/qt6-base/template +++ b/srcpkgs/qt6-base/template @@ -1,6 +1,6 @@ # Template file for 'qt6-base' pkgname=qt6-base -version=6.2.1 +version=6.2.2 revision=1 wrksrc="qtbase-everywhere-src-${version}" build_style=cmake @@ -29,7 +29,7 @@ maintainer="John " license="GPL-3.0-only WITH Qt-GPL-exception-1.0, LGPL-3.0-only, GPL-2.0-or-later" homepage="https://www.qt.io" distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtbase-everywhere-src-${version}.tar.xz" -checksum=2c5f07b5c3ea27d3fc1a46686ea3fb6724f94dddf1fb007de3eb0bdb87429079 +checksum=85ab9180180c2eaf84cd11ae4c6d5a6a69f2f8fd7260aaccfd91a3e7e7232c1a python_version=3 if [ "$CROSS_BUILD" ]; then