diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-13 10:39:22 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-13 10:39:22 +0100 |
commit | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (patch) | |
tree | 8ac67e26b45f34d71c5aab3621813b100a0d5f00 /dev-qt/qtdeclarative | |
parent | f516638b7fe9592837389826a6152a7e1b251c54 (diff) |
gentoo resync : 13.06.2020
Diffstat (limited to 'dev-qt/qtdeclarative')
-rw-r--r-- | dev-qt/qtdeclarative/Manifest | 7 | ||||
-rw-r--r-- | dev-qt/qtdeclarative/files/qtdeclarative-5.14.2-QQuickMouseArea-stuck-in-pressed-state.patch | 55 | ||||
-rw-r--r-- | dev-qt/qtdeclarative/qtdeclarative-5.14.2-r2.ebuild | 2 | ||||
-rw-r--r-- | dev-qt/qtdeclarative/qtdeclarative-5.14.2-r3.ebuild (renamed from dev-qt/qtdeclarative/qtdeclarative-5.14.1-r2.ebuild) | 8 | ||||
-rw-r--r-- | dev-qt/qtdeclarative/qtdeclarative-5.14.2.ebuild | 53 |
5 files changed, 66 insertions, 59 deletions
diff --git a/dev-qt/qtdeclarative/Manifest b/dev-qt/qtdeclarative/Manifest index 8276ad4eee70..e8318234b276 100644 --- a/dev-qt/qtdeclarative/Manifest +++ b/dev-qt/qtdeclarative/Manifest @@ -1,11 +1,10 @@ AUX qtdeclarative-5.14.2-QQuickItemView-fix-maxXY-extent.patch 1566 BLAKE2B b6436c9be0a7de092635e1fc3999c3142fc3e916cbcc69f472691bbd559f611b4d5741f3627c47162a5ac86126382507add72a25a121235e856b1de802ee19be SHA512 dd5193f8d8a051238dabf63306cc77e3a5696fc12241c27f35cadfd30763ddfeb2af7d640849dcc7a810b7087173b8e9af17341ea1b68440906f2c2f1f96fee3 +AUX qtdeclarative-5.14.2-QQuickMouseArea-stuck-in-pressed-state.patch 2326 BLAKE2B 5e611e7f2700743deee7d930fff129f525af54c2e3d6e53dd84a50c989e30046f970989f01a60379473e6626c8f4e0c99a6c4b645a986133ea519e944d173168 SHA512 6b6155fd82edd8d20e2e43b3f9c9294d091ef011b49024994a5a6b78fb536e632f923a981859013969b7d1cbdb86a16bec9f9e3f0f8db26cc4f24847ec6c338e AUX qtdeclarative-5.14.2-fix-subpixel-positioned-text.patch 3141 BLAKE2B 98aa28237d08909005267ff585b8112f1349f9f14e71bf505b84abbc38bc77fc1fb7c5a4588ff173df71223bfb842aed44283ac153b19f5cc6967fa4a3c275e4 SHA512 245097ed63bfe8f1cf3c4ec82a30757131a76b7ac9c47251044ca44822a2dbd8c5958f87cbc78f0196a67498f0cbbe03b7c15519fc55136e7ccb6f181a342b5f AUX qtdeclarative-5.4.2-disable-jit.patch 547 BLAKE2B 3f9cc85ab9ec7c2b79aad8bcbfe541ba51745f62e3f02111a2f455c6d1a7959c7980284e3a655ce8335d4a166d65570f2b9d236c681d155c015cc14dc3bb54af SHA512 cd410c0e731a1e096bd8a77b7ecc769a5e3503f7a2f12668f2f4f1c3099973eaa2060d97708962e422c580ee76ee3db3712834cd994b7e1aeeb57c0a4c3b0b3d -DIST qtdeclarative-everywhere-src-5.14.1.tar.xz 21299728 BLAKE2B dfa0dfc95956f9c9eeb6b790e0221cf745b0cefd89fc070caa741b9cdc644acd990128affbcef6ac585758a02f94b1693ccca77d9de080f04f4d1b6d2304537f SHA512 70094d24a977a5ae4a3a11ee31e49234592faca1ec8195560977e7834778d1b1fdc2a30e555dc6c43c98cef2a39d5c1bf6351093c0f46b9b22b4127f3bebef58 DIST qtdeclarative-everywhere-src-5.14.2.tar.xz 21305980 BLAKE2B 0ccbae8ddc46f4891af6732a4b3cf874c523c7ded5a06f78c7c5cd290fef8e32ad6efe5dcffe947024144128ab2f1108594e4a30da9ca79e1ce3008c73ca2a25 SHA512 48d3a547237514a8bdc2a4c0b3f97732abceacece0e0899d2f33787293eb99f54c28efce35a34b8c46dcd4d78ebbc88bfc820bc68496076eacace40aaceee004 DIST qtdeclarative-everywhere-src-5.15.0.tar.xz 21493268 BLAKE2B c6b8365caa3e0eef3023d727adf086c16bafc171bcfa839a4dc83132b5c9a76c9a849b387f3815c1a9b12db5824ccc628cad22efd0ce0cb70059971cadfbb00b SHA512 0ec3403286efea6d6ac975ea6bd4464ea656c031f5f27b852235fd69d316a627ac3ff2ea2c3cca0a5375ca278f592df3ecade4e98aa15ec92816a16927f56e5e -EBUILD qtdeclarative-5.14.1-r2.ebuild 1178 BLAKE2B 7f39248777ab4d62393d935318575fb69473e50b2a5794015ed5f5ce8adfa0012f60cd174e512f7aff76aaf27d568ececc8a2fb7051117f2ee690e71b5067af4 SHA512 f86b6074b37a635d1fb53b7c94ab47ba6a8558a9cf2a49f9ffc7821e8f507be6ab4972f8a14fd6fde89395f004bd3f277b68ec27c90eddd386ad91ea8ce7dff4 -EBUILD qtdeclarative-5.14.2-r2.ebuild 1340 BLAKE2B ff14fb7dee0584b98a3aa95b2bc0b94d3cf3e84e821cb3bd811e64774a3be466b5de875d16b92932ff91b911df28d0e1723b859d84d61c6b737abe7978be0619 SHA512 e656577293156f321d7fe56ff0f2c7072f278070b3b9f6407f59927950bd740bcf5fe2d612a15bbcec6a80ca2a6e148c8ad628adfa87ad937423318e2d821fda -EBUILD qtdeclarative-5.14.2.ebuild 1188 BLAKE2B 8ac2d33ed385990e892dfaf8198d75875a77dee5ec493a41b02dd87a4fdf9fb347c50b635dbeb698e978d0283abbf07a0eb1071f4e05b7da44d5468f9f3eca50 SHA512 20f724f73cc3b57fc51cb228fa86170569d3df3eac0dba11e6b857d15d3e04a4ba8e52d96cc53c94e7d660bcb9f0c40cc95408ee27fa7cc300e195bebf759c75 +EBUILD qtdeclarative-5.14.2-r2.ebuild 1338 BLAKE2B 1cfe2dc4bb2dc7c9466c0cc2c69d272b3d4fd30be3035ab2999b9fd65f9453d855bab3a3bc79edb3d99038f30c380b1b26dbc7c8232c3f85f8c9142e73bee960 SHA512 f46b45e34b7ab08daa2466b6f5699055539a7901901082afb20d539fe8dedecc8978178f878f0e958612f27da759e448345ceb9e6174b71b6b23f437e6b103da +EBUILD qtdeclarative-5.14.2-r3.ebuild 1423 BLAKE2B d672598e1cf189e6491a11b340f9e3909b74e7f570d0d38129d3ab52c06ea603b9bf60663cbe22c41b3621d4ff40f3712617dd377e8836324a4457494e34292d SHA512 1a3487dbb624941fc992b48887ca4e7461ca4190d22d31a11e0f2a3c83fb83c68e05eafab8c71d465086beea7ae9cecfa54960d784ddd55d62db01b96f1d9e51 EBUILD qtdeclarative-5.15.0.ebuild 1360 BLAKE2B 5d66999c92120e357aed3ac2828c8163fbe2f854be4794a4cf793417014a60a16adc794fa9cea50340c8df185c94a7aea5f1b6efd46aa0890765a9684118a816 SHA512 ae0b1468d90fef120f0e22cbe09bc2d33838d30f188167d54addb32f4f286377145b447f6dd4d0e4e914f528182e2b648079c8649ec5f2e0491544e077354fdf MISC metadata.xml 700 BLAKE2B 80c5bfdd7c6acd05795c20b36d062b76458fc4b3f83835eef83ed2f304e70dbae9dfe81908bf33e41fd944de4cc754e5f839451cf4c8ef4f06063817730b7cf6 SHA512 f1fbc57d96dc5b481d08da8c73ab9d1e183045ecefeb075a7ee8f1d6733583589077e3650ad5b2d52e4cafc67bf0894ae62fd4500e1974053e46d6a89377f3fd diff --git a/dev-qt/qtdeclarative/files/qtdeclarative-5.14.2-QQuickMouseArea-stuck-in-pressed-state.patch b/dev-qt/qtdeclarative/files/qtdeclarative-5.14.2-QQuickMouseArea-stuck-in-pressed-state.patch new file mode 100644 index 000000000000..1dd0ff1155de --- /dev/null +++ b/dev-qt/qtdeclarative/files/qtdeclarative-5.14.2-QQuickMouseArea-stuck-in-pressed-state.patch @@ -0,0 +1,55 @@ +From 8ace780b5aa298e3c01903bfd57f766a42209191 Mon Sep 17 00:00:00 2001 +From: Frederik Gladhorn <frederik.gladhorn@remarkable.com> +Date: Sat, 28 Mar 2020 15:14:41 +0100 +Subject: [PATCH] Fix QQuickMouseArea getting stuck in pressed state when + hiding in press +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + +In 78c1fcbc49f56463064eef738a475d9018357b24 we stopped giving the +exclusive grab to hidden or disabled items with is good. But the change +did not take into consideration how mouse area handles its internal +state. + +As a simple example: A mouse area that would set itself hiddin in the +press handler, would continue to have d->pressed == true, which means it +would not react to any future press events. + +The fix is to let mouse area check in its change handler whether it has +become invisible. +The test also checks that enabled behaves the same way. There is no +action needed, since mouse area does completely custom handling of +enabled (maybe something to fix in Qt 6), disabling a mouse area doesn't +disable its children for example, it doesn't invoke +QQuickItem::setEnabled at all. Due to this circumventing the common +behavior, by chance disabling a mouse area in the on pressed handler +works. + +Fixes: QTBUG-74987 +Change-Id: Idb8499b3e5bcb744fbba203fdea5c46695bd5077 +Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> +--- + src/quick/items/qquickmousearea.cpp | 6 ++++ + 3 files changed, 80 insertions(+) + create mode 100644 tests/auto/quick/qquickmousearea/data/settingHiddenInPressUngrabs.qml + +diff --git a/src/quick/items/qquickmousearea.cpp b/src/quick/items/qquickmousearea.cpp +index 368379f5c40..dc60712a9cd 100644 +--- a/src/quick/items/qquickmousearea.cpp ++++ b/src/quick/items/qquickmousearea.cpp +@@ -1083,6 +1083,12 @@ void QQuickMouseArea::itemChange(ItemChange change, const ItemChangeData &value) + } + setHovered(!d->hovered); + } ++ if (d->pressed && (!isVisible())) { ++ // This happens when the mouse area sets itself disabled or hidden ++ // inside the press handler. In that case we should not keep the internal ++ // state as pressed, since we never became the mouse grabber. ++ ungrabMouse(); ++ } + break; + default: + break; +-- +2.16.3 diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.14.2-r2.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.14.2-r2.ebuild index 8974a5e83194..24d7551a2fd7 100644 --- a/dev-qt/qtdeclarative/qtdeclarative-5.14.2-r2.ebuild +++ b/dev-qt/qtdeclarative/qtdeclarative-5.14.2-r2.ebuild @@ -8,7 +8,7 @@ inherit python-any-r1 qt5-build DESCRIPTION="The QML and Quick modules for the Qt5 framework" if [[ ${QT5_BUILD_TYPE} == release ]]; then - KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86" + KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~sparc x86" fi IUSE="gles2-only +jit localstorage vulkan +widgets" diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.14.1-r2.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.14.2-r3.ebuild index 8aff110ecb63..71250b4c877d 100644 --- a/dev-qt/qtdeclarative/qtdeclarative-5.14.1-r2.ebuild +++ b/dev-qt/qtdeclarative/qtdeclarative-5.14.2-r3.ebuild @@ -8,7 +8,7 @@ inherit python-any-r1 qt5-build DESCRIPTION="The QML and Quick modules for the Qt5 framework" if [[ ${QT5_BUILD_TYPE} == release ]]; then - KEYWORDS="amd64 ~arm arm64 ~hppa ppc ppc64 x86" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" fi IUSE="gles2-only +jit localstorage vulkan +widgets" @@ -27,6 +27,12 @@ RDEPEND="${DEPEND} !<dev-qt/qtquickcontrols-5.7:5 " +PATCHES=( + "${FILESDIR}/${P}-QQuickItemView-fix-maxXY-extent.patch" # QTBUG-83890 + "${FILESDIR}/${P}-fix-subpixel-positioned-text.patch" # QTBUG-49646 + "${FILESDIR}/${P}-QQuickMouseArea-stuck-in-pressed-state.patch" # QTBUG-74987 +) + src_prepare() { use jit || PATCHES+=("${FILESDIR}/${PN}-5.4.2-disable-jit.patch") diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.14.2.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.14.2.ebuild deleted file mode 100644 index 9a43f954fada..000000000000 --- a/dev-qt/qtdeclarative/qtdeclarative-5.14.2.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2009-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) -inherit python-any-r1 qt5-build - -DESCRIPTION="The QML and Quick modules for the Qt5 framework" - -if [[ ${QT5_BUILD_TYPE} == release ]]; then - KEYWORDS="~amd64 arm ~arm64 ~hppa ~ppc ppc64 ~sparc ~x86" -fi - -IUSE="gles2-only +jit localstorage vulkan +widgets" - -BDEPEND="${PYTHON_DEPS}" -# qtgui[gles2-only=] is needed because of bug 504322 -DEPEND=" - ~dev-qt/qtcore-${PV} - ~dev-qt/qtgui-${PV}[gles2-only=,vulkan=] - ~dev-qt/qtnetwork-${PV} - ~dev-qt/qttest-${PV} - localstorage? ( ~dev-qt/qtsql-${PV} ) - widgets? ( ~dev-qt/qtwidgets-${PV}[gles2-only=] ) -" -RDEPEND="${DEPEND} - !<dev-qt/qtquickcontrols-5.7:5 -" - -src_prepare() { - use jit || PATCHES+=("${FILESDIR}/${PN}-5.4.2-disable-jit.patch") - - qt_use_disable_mod localstorage sql \ - src/imports/imports.pro - - qt_use_disable_mod widgets widgets \ - src/src.pro \ - src/qmltest/qmltest.pro \ - tests/auto/auto.pro \ - tools/tools.pro \ - tools/qmlscene/qmlscene.pro \ - tools/qml/qml.pro - - qt5-build_src_prepare -} - -src_configure() { - local myqmakeargs=( - -- - -qml-debug - ) - qt5-build_src_configure -} |