[SCM] kiconthemes packaging branch, master, updated. debian/5.28.0-2-12-g1724c5b

Maximiliano Curia maxy at moszumanska.debian.org
Sat Jul 8 07:20:57 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/frameworks/kiconthemes.git;a=commitdiff;h=e8ee01b

The following commit has been merged in the master branch:
commit e8ee01b1f045a56199809a4fa1bebf79cd6be86d
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Thu Jun 29 16:59:21 2017 +0200

    Drop upstream patches
---
 ...er-also-when-the-desktop-icon-theme-is-ch.patch | 48 ---------------
 ...KIconEngine-Center-icon-in-requested-rect.patch | 71 ----------------------
 debian/patches/series                              |  2 -
 3 files changed, 121 deletions(-)

diff --git a/debian/patches/Inform-QIconLoader-also-when-the-desktop-icon-theme-is-ch.patch b/debian/patches/Inform-QIconLoader-also-when-the-desktop-icon-theme-is-ch.patch
deleted file mode 100644
index 40b2fd0..0000000
--- a/debian/patches/Inform-QIconLoader-also-when-the-desktop-icon-theme-is-ch.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From: Michael Pyne <mpyne at kde.org>
-Date: Tue, 20 Dec 2016 19:57:18 -0500
-Subject: Inform QIconLoader also when the desktop icon theme is changed.
-
-This change is needed because KIconTheme will defer to QIconLoader's
-concept of the current icon theme in preference to our own global
-config, if that current icon theme is set.
-
-Qt normally leaves it unset but once it starts loading icons through our
-platform plugin, it will remember which theme was in use.
-
-This means when we change the configured icon theme, that we would
-sometimes accidentally continue to load icons from the old icon theme
-(the one remembered by Qt).
-
-Thanks to Wolfgang Bauer for debugging the issue, narrowing the
-potential causes of the bug was instrumental in fixing it!
-
-BUG:365363
-FIXED-IN:5.30
----
- src/kiconloader.cpp | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/src/kiconloader.cpp b/src/kiconloader.cpp
-index 5315ea4..726b43f 100644
---- a/src/kiconloader.cpp
-+++ b/src/kiconloader.cpp
-@@ -541,7 +541,18 @@ void KIconLoaderPrivate::drawOverlays(const KIconLoader *iconLoader, KIconLoader
- 
- void KIconLoaderPrivate::_k_refreshIcons(int group)
- {
--    KSharedConfig::openConfig()->reparseConfiguration();
-+    KSharedConfig::Ptr sharedConfig = KSharedConfig::openConfig();
-+    sharedConfig->reparseConfiguration();
-+
-+    const QString newThemeName = sharedConfig->group("Icons")
-+                                               .readEntry("Theme", QString());
-+    if (!newThemeName.isEmpty()) {
-+        // If we're refreshing icons the Qt platform plugin has probably
-+        // already cached the old theme, which will accidentally filter back
-+        // into KIconTheme unless we reset it
-+        QIcon::setThemeName(newThemeName);
-+    }
-+
-     q->newIconLoader();
-     mIconAvailability.clear();
-     emit q->iconChanged(group);
diff --git a/debian/patches/KIconEngine-Center-icon-in-requested-rect.patch b/debian/patches/KIconEngine-Center-icon-in-requested-rect.patch
deleted file mode 100644
index ef6f0c4..0000000
--- a/debian/patches/KIconEngine-Center-icon-in-requested-rect.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-From: David Rosca <nowrep at gmail.com>
-Date: Sun, 22 Jan 2017 17:36:03 +0100
-Subject: KIconEngine: Center icon in requested rect
-
-Match the behavior of Qt's internal icon engines.
-
-Differential Revision: https://phabricator.kde.org/D4247
----
- autotests/kiconengine_unittest.cpp | 15 +++++++++++++++
- src/kiconengine.cpp                | 10 ++--------
- 2 files changed, 17 insertions(+), 8 deletions(-)
-
-diff --git a/autotests/kiconengine_unittest.cpp b/autotests/kiconengine_unittest.cpp
-index ac26b8d..60476df 100644
---- a/autotests/kiconengine_unittest.cpp
-+++ b/autotests/kiconengine_unittest.cpp
-@@ -127,6 +127,21 @@ private Q_SLOTS:
-         QCOMPARE(icon3.name(), nonExistingIconName);
- 
-     }
-+
-+    void testCenterIcon()
-+    {
-+        QIcon icon(new KIconEngine(QStringLiteral("kde"), KIconLoader::global()));
-+        QVERIFY(!icon.isNull());
-+
-+        // "kde" icon is actually "test-22x22.png", so this is original icon image
-+        const QImage image = icon.pixmap(22, 22).toImage();
-+
-+        // center vertically
-+        QVERIFY(icon.pixmap(22, 26).toImage().copy(0, 2, 22, 22) == image);
-+
-+        // center horizontally
-+        QVERIFY(icon.pixmap(26, 22).toImage().copy(2, 0, 22, 22) == image);
-+    }
- private:
-     QDir testIconsDir;
- };
-diff --git a/src/kiconengine.cpp b/src/kiconengine.cpp
-index 6f3288c..da6051e 100644
---- a/src/kiconengine.cpp
-+++ b/src/kiconengine.cpp
-@@ -72,18 +72,12 @@ void KIconEngine::paint(QPainter *painter, const QRect &rect, QIcon::Mode mode,
-         return;
-     }
- 
--    Q_UNUSED(state)
--
- #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
-     const qreal dpr = painter->device()->devicePixelRatioF();
- #else
-     const qreal dpr = painter->device()->devicePixelRatio();
- #endif
--
--    const int kstate = qIconModeToKIconState(mode);
--    const int iconSize = qMin(rect.width(), rect.height()) * dpr;
--    const QPixmap pix = mIconLoader.data()->loadIcon(mIconName, KIconLoader::Desktop, iconSize, kstate, mOverlays);
--    painter->drawPixmap(rect, pix);
-+    painter->drawPixmap(rect, pixmap(rect.size() * dpr, mode, state));
- }
- 
- QPixmap KIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state)
-@@ -113,7 +107,7 @@ QPixmap KIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon::State st
-     pix2.fill(QColor(0, 0, 0, 0));
- 
-     QPainter painter(&pix2);
--    painter.drawPixmap(QPoint(), pix);
-+    painter.drawPixmap(QPoint((pix2.width() - pix.width()) / 2, (pix2.height() - pix.height()) / 2), pix);
- 
-     return pix2;
- }
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 90df572..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1,2 +0,0 @@
-Inform-QIconLoader-also-when-the-desktop-icon-theme-is-ch.patch
-KIconEngine-Center-icon-in-requested-rect.patch

-- 
kiconthemes packaging



More information about the pkg-kde-commits mailing list