debian/0000775000000000000000000000000012627057611007177 5ustar debian/compat0000664000000000000000000000000212140260357010366 0ustar 9 debian/source/0000775000000000000000000000000012450245125010470 5ustar debian/source/format0000664000000000000000000000001412140260357011676 0ustar 3.0 (quilt) debian/patches/0000775000000000000000000000000012450253704010621 5ustar debian/patches/series0000664000000000000000000000007512450253704012040 0ustar upstream_Cleanlooks-style-Fix-floating-point-exception.patch debian/patches/upstream_Cleanlooks-style-Fix-floating-point-exception.patch0000664000000000000000000000345712450253674024501 0ustar From 8ff2ac6035fb1d01f5c0054ba14afb949410e3a7 Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Wed, 4 Jun 2014 20:27:53 -0400 Subject: [PATCH] Cleanlooks style: Fix floating point exception In QCleanlooksStyle::drawControl, if indeterminate == true and rect.width() == 4, we will end up with slideWidth of zero, and take a mod by zero when calculating the value of step. Identical code in Qt4 Cleanlooks causes a crash in Quassel 0.10; see https://bugs.gentoo.org/show_bug.cgi?id=507124 Instead, calculate slideWidth based on max(width, minWidth) where minWidth was already set as 4, ensuring that slideWidth >= 2. Change-Id: Id3e39437665be326358f68c48eaf1249b6880c4a Reviewed-by: Giuseppe D'Angelo Reviewed-by: J-P Nurmi --- src/plugins/styles/cleanlooks/qcleanlooksstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/styles/cleanlooks/qcleanlooksstyle.cpp b/src/plugins/styles/cleanlooks/qcleanlooksstyle.cpp index 8d89e39..1e82ed7 100644 --- a/src/plugins/styles/cleanlooks/qcleanlooksstyle.cpp +++ b/src/plugins/styles/cleanlooks/qcleanlooksstyle.cpp @@ -1749,7 +1749,7 @@ void QCleanlooksStyle::drawControl(ControlElement element, const QStyleOption *o progressBar.setRect(rect.right() - 1 - width, rect.top() + 1, width + 1, rect.height() - 3); } } else { - int slideWidth = ((rect.width() - 4) * 2) / 3; + int slideWidth = (qMax(rect.width() - 4, minWidth) * 2) / 3; int step = ((animateStep * slideWidth) / progressAnimationFps) % slideWidth; if ((((animateStep * slideWidth) / progressAnimationFps) % (2 * slideWidth)) >= slideWidth) step = slideWidth - step; -- 2.1.4 debian/control0000664000000000000000000000243612627056524010611 0ustar Source: qtstyleplugins-src Section: libs Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Qt/KDE Maintainers Uploaders: Fathi Boudra , Modestas Vainius , Sune Vuorela , Pino Toscano , Lisandro Damián Nicanor Pérez Meyer , Felix Geyer , Timo Jyrinki , Dmitry Shachnev Build-Depends: debhelper (>= 9), pkg-kde-tools, qtbase5-private-dev, Standards-Version: 3.9.6 Homepage: http://qt-project.org/ Vcs-Git: git://anonscm.debian.org/pkg-kde/qt/qtstyleplugins.git Vcs-Browser: http://anonscm.debian.org/cgit/pkg-kde/qt/qtstyleplugins.git Package: qt5-style-plugins Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Description: Qt 5 extra widget styles Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality. . This package contains the following widget styles: - Cleanlooks - Motif - Plastique debian/watch0000664000000000000000000000017512450245017010224 0ustar version=3 http://download.qt-project.org/community_releases/additional_qt_src_pkgs/qtstyleplugins-src-([^-]*)\.tar.(?:gz|xz) debian/copyright0000664000000000000000000000662112450252572011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: qtstyleplugins-src Files: * Copyright: 2012 Digia Plc and/or its subsidiary(-ies) License: LGPL-2.1 with Digia Qt LGPL Exception 1.1 or GPL-3 Files: debian/* Copyright: 2014 Pino Toscano License: LGPL-2.1 License: LGPL-2.1 with Digia Qt LGPL Exception 1.1 GNU Lesser General Public License version 2.1: This file may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation and appearing in the file LICENSE.LGPL included in the packaging of this file. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. . In addition, as a special exception, Digia gives you certain additional rights. These rights are described in the Digia Qt LGPL Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this package. . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1`. . Digia Qt LGPL Exception version 1.1: As an additional permission to the GNU Lesser General Public License version 2.1, the object code form of a "work that uses the Library" may incorporate material from a header file that is part of the Library. You may distribute such object code under terms of your choice, provided that: (i) the header files of the Library have not been modified; and (ii) the incorporated material is limited to numerical parameters, data structure layouts, accessors, macros, inline functions and templates; and (iii) you comply with the terms of Section 6 of the GNU Lesser General Public License version 2.1. . Moreover, you may apply this exception to a modified version of the Library, provided that such modification does not involve copying material from the Library into the modified Library's header files unless such material is limited to (i) numerical parameters; (ii) data structure layouts; (iii) accessors; and (iv) small macros, templates and inline functions of five lines or less in length. . Furthermore, you are not required to apply this additional permission to a modified version of the Library. License: GPL-3 GNU General Public License Usage . Alternatively, this file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE.GPL included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. . On Debian systems, the complete text of the license can be found in `/usr/share/common-licenses/GPL-3`. License: LGPL-2.1 This file may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation and appearing in the file LICENSE.LGPL included in the packaging of this file. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. . On Debian systems, the complete text of the LGPL-2.1 license can be found in `/usr/share/common-licenses/LGPL-2.1`, debian/quiltrc0000664000000000000000000000031412140260357010574 0ustar QUILT_PATCHES="debian/patches" QUILT_PATCH_OPTS="--reject-format=unified" QUILT_DIFF_ARGS="--no-timestamps --no-index" QUILT_REFRESH_ARGS="--no-timestamps --no-index -pab --diffstat" QUILT_DIFF_OPTS="-p" debian/rules0000775000000000000000000000115412450246015010250 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed export QT_SELECT := qt5 %: dh $@ --parallel override_dh_auto_configure: qmake #QT_BUILD_PARTS+=tests override_dh_auto_install: dh_auto_install # Remove the development stuff of the installed plugins rm -rfv $(CURDIR)/debian/qt5-style-plugins/usr/lib/*/cmake/ debian/changelog0000664000000000000000000000125512627057610011053 0ustar qtstyleplugins-src (5.0.0-1build3) xenial; urgency=medium * Rebuild against Qt 5.5.1. -- Timo Jyrinki Mon, 30 Nov 2015 16:29:40 +0200 qtstyleplugins-src (5.0.0-1build1) wily; urgency=medium * No-change rebuild against Qt 5.4.2. -- Timo Jyrinki Mon, 15 Jun 2015 21:03:40 +0300 qtstyleplugins-src (5.0.0-1) unstable; urgency=low * Initial release. * Backport upstream commit 8ff2ac6035fb1d01f5c0054ba14afb949410e3a7 to fix a floating point exception in Cleanlooks style; patch upstream_Cleanlooks-style-Fix-floating-point-exception.patch. -- Pino Toscano Mon, 29 Dec 2014 15:43:05 +0100