Date: Saturday, January 28, 2017 @ 10:19:34 Author: arojas Revision: 209274
Fix using KDE color scheme (FS#52720) Added: qt5ct/trunk/qt5ct-fix-color-scheme.patch Modified: qt5ct/trunk/PKGBUILD ------------------------------+ PKGBUILD | 13 ++++++++++--- qt5ct-fix-color-scheme.patch | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-01-28 03:43:47 UTC (rev 209273) +++ PKGBUILD 2017-01-28 10:19:34 UTC (rev 209274) @@ -5,7 +5,7 @@ pkgname=qt5ct pkgver=0.29 -pkgrel=2 +pkgrel=3 pkgdesc="Qt5 Configuration Utility" arch=(i686 x86_64) url="http://qt5ct.sourceforge.net" @@ -12,9 +12,16 @@ license=(BSD) depends=(qt5-svg) makedepends=(qt5-tools) -source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.bz2") -sha256sums=('a016142a04a5edfbdda627fc203622f512fae9e84bcf89ce63a7107f01721adc') +source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.bz2" qt5ct-fix-color-scheme.patch) +sha256sums=('a016142a04a5edfbdda627fc203622f512fae9e84bcf89ce63a7107f01721adc' + '171c5802dc77a63aa7fff806b5f63b8f4fe7e1f52653f4c11d8597ae910a4af7') +prepare() { + cd $pkgname-$pkgver +# Fix color scheme https://sourceforge.net/p/qt5ct/tickets/32/ + patch -p3 -i ../qt5ct-fix-color-scheme.patch +} + build() { cd $pkgname-$pkgver qmake-qt5 $pkgname.pro Added: qt5ct-fix-color-scheme.patch =================================================================== --- qt5ct-fix-color-scheme.patch (rev 0) +++ qt5ct-fix-color-scheme.patch 2017-01-28 10:19:34 UTC (rev 209274) @@ -0,0 +1,14 @@ +--- a/trunk/qt5ct/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp ++++ b/trunk/qt5ct/src/qt5ct-qtplugin/qt5ctplatformtheme.cpp +@@ -101,9 +101,8 @@ + + const QPalette *Qt5CTPlatformTheme::palette(QPlatformTheme::Palette type) const + { +- if(m_customPalette && m_usePalette) +- return m_customPalette; +- return QPlatformTheme::palette(type); ++ Q_UNUSED(type); ++ return (m_usePalette ? m_customPalette : 0); + } + + const QFont *Qt5CTPlatformTheme::font(QPlatformTheme::Font type) const
