summaryrefslogtreecommitdiff
path: root/kde-frameworks/kirigami/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-17 01:16:38 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-17 01:16:38 +0000
commit53cba99042fa967e2a93da9f8db806fe2d035543 (patch)
tree9780d3b87dfc6bdebc6b7b7d15af1ecb813c6853 /kde-frameworks/kirigami/files
parent71deace00d1a2b091313fe137ab7092418c6f87c (diff)
gentoo resync : 17.02.2020
Diffstat (limited to 'kde-frameworks/kirigami/files')
-rw-r--r--kde-frameworks/kirigami/files/kirigami-5.67.1-sync-size-hints-w-state-machine.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/kde-frameworks/kirigami/files/kirigami-5.67.1-sync-size-hints-w-state-machine.patch b/kde-frameworks/kirigami/files/kirigami-5.67.1-sync-size-hints-w-state-machine.patch
new file mode 100644
index 000000000000..e5973abac16f
--- /dev/null
+++ b/kde-frameworks/kirigami/files/kirigami-5.67.1-sync-size-hints-w-state-machine.patch
@@ -0,0 +1,55 @@
+From 86f988434cd657e77cc9429e78f7290ce6b5713d Mon Sep 17 00:00:00 2001
+From: Marco Martin <notmart@gmail.com>
+Date: Wed, 12 Feb 2020 12:43:12 +0100
+Subject: properly sync size hints with state machine
+
+define implicitWidth and width bindings in the states, in
+order to not break bindings
+BUG:417351
+---
+ src/controls/FormLayout.qml | 13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
+
+diff --git a/src/controls/FormLayout.qml b/src/controls/FormLayout.qml
+index ff49dbd..61fbaf9 100644
+--- a/src/controls/FormLayout.qml
++++ b/src/controls/FormLayout.qml
+@@ -120,6 +120,11 @@ Item {
+ horizontalCenter: root.horizontalCenter
+ }
+ }
++ PropertyChanges {
++ target: lay
++ implicitWidth: undefined
++ width: undefined
++ }
+ },
+ State {
+ when: !root.wideMode
+@@ -131,10 +136,15 @@ Item {
+ horizontalCenter: undefined
+ }
+ }
++ PropertyChanges {
++ target: lay
++ implicitWidth: root.width
++ width: Math.min(implicitWidth, parent.width)
++ }
++
+ }
+ ]
+
+- implicitWidth: root.wideMode ? undefined : root.width
+ width: Math.min(implicitWidth, parent.width)
+ Timer {
+ id: hintCompression
+@@ -146,6 +156,7 @@ Item {
+ }
+ onImplicitWidthChanged: hintCompression.restart();
+ //This invisible row is used to sync alignment between multiple layouts
++
+ Item {
+ Layout.preferredWidth: {
+ var hint = 1;
+--
+cgit v1.1