Hello community,

here is the log from the commit of package kwidgetsaddons for openSUSE:Factory 
checked in at 2019-02-28 21:32:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kwidgetsaddons (Old)
 and      /work/SRC/openSUSE:Factory/.kwidgetsaddons.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kwidgetsaddons"

Thu Feb 28 21:32:29 2019 rev:63 rq:678720 version:5.55.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kwidgetsaddons/kwidgetsaddons.changes    
2019-02-14 14:28:32.587785437 +0100
+++ /work/SRC/openSUSE:Factory/.kwidgetsaddons.new.28833/kwidgetsaddons.changes 
2019-02-28 21:32:32.417750833 +0100
@@ -1,0 +2,7 @@
+Fri Feb 15 09:25:42 UTC 2019 - alarr...@suse.com
+
+- Add 0001-Do-not-use-AnimationDuration-if-Qt-lt-5.10.patch to build with
+  Qt 5.9
+- Downgrade the Qt version requirement to build with 5.9
+
+-------------------------------------------------------------------

New:
----
  0001-Do-not-use-AnimationDuration-if-Qt-lt-5.10.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kwidgetsaddons.spec ++++++
--- /var/tmp/diff_new_pack.1WVofk/_old  2019-02-28 21:32:32.901750681 +0100
+++ /var/tmp/diff_new_pack.1WVofk/_new  2019-02-28 21:32:32.905750679 +0100
@@ -32,6 +32,8 @@
 URL:            https://www.kde.org
 Source:         
http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
 Source1:        baselibs.conf
+# PATCH-FIX-OPENSUSE
+Patch0:         0001-Do-not-use-AnimationDuration-if-Qt-lt-5.10.patch
 BuildRequires:  cmake >= 3.0
 BuildRequires:  extra-cmake-modules >= %{_kf5_bugfix_version}
 BuildRequires:  fdupes
@@ -79,6 +81,10 @@
 
 %prep
 %setup -q
+%autopatch -p1
+%if 0%{?suse_version} == 1500
+sed -i -e "s/^set *(REQUIRED_QT_VERSION 5.10.0)$/set(REQUIRED_QT_VERSION 
5.9.0)/" CMakeLists.txt
+%endif
 
 %build
   %cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert

++++++ 0001-Do-not-use-AnimationDuration-if-Qt-lt-5.10.patch ++++++
>From 953939b4727cf46b1e100e29f020e735c2cf92f5 Mon Sep 17 00:00:00 2001
From: Christoph Feck <cf...@kde.org>
Date: Wed, 26 Sep 2018 22:25:23 +0200
Subject: [KCollapsibleGroupBox] Respect style's widget animation duration

Query QStyle::SH_Widget_Animation_Duration style hint.

QTimeLine requires a duration > 0, so use 1 [ms] to make
the animation as fast as possible when disabled.

BUG: 397103
FIXED-IN: 5.51.0

Reviewed by: ngraham, elvisangelaccio

Differential Revision: https://phabricator.kde.org/D15611
---
 src/kcollapsiblegroupbox.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

Rebased by Antonio Larrosa <alarr...@suse.com> to recover this patch
which was later removed by upstream

diff --git a/src/kcollapsiblegroupbox.cpp b/src/kcollapsiblegroupbox.cpp
index e44ef2a..ad9a918 100644
--- a/src/kcollapsiblegroupbox.cpp
+++ b/src/kcollapsiblegroupbox.cpp
@@ -122,9 +122,13 @@ void KCollapsibleGroupBox::setExpanded(bool expanded)
     d->updateChildrenFocus(expanded);
 
     d->animation->setDirection(expanded ? QTimeLine::Forward : 
QTimeLine::Backward);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
     // QTimeLine::duration() must be > 0
     const int duration = qMax(1, 
style()->styleHint(QStyle::SH_Widget_Animation_Duration));
     d->animation->setDuration(duration);
+#else
+    d->animation->setDuration(style()->styleHint(QStyle::SH_Widget_Animate, 
nullptr, this) ? 500 : 1);
+#endif
     d->animation->start();
 
     //when going from collapsed to expanded changing the child visibility 
calls an updateGeometry
-- 
cgit v1.1


Reply via email to