mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-qt/qtstyleplugins: treeclean
Closes: https://bugs.gentoo.org/947787 (pkgremoved) Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST qtstyleplugins-5.0.0_p20170311.tar.gz 306394 BLAKE2B a59343602062ec1d0f215acf568322a5be874552b0c03dec75f268cec2123b1baa30bee524e36c9d522a8c935a58f204b5362feaf028df87ca10ea01dd29b3fb SHA512 e8c2d0e9c6b0a47cab04ffd2e9384606638905b63a7c1580f9b629bbcc84ebff19743363ffee3dbd31c3de1dcda684211ad3052932b5aa0081e529afd9cbb14d
|
||||
@@ -1,47 +0,0 @@
|
||||
From: Fabian Vogt <fvogt@suse.de>
|
||||
Subject: Fix build against Qt 5.15
|
||||
|
||||
With 0a93db4d82c051164923a10e4382b12de9049b45
|
||||
("Unify application palette handling between QGuiApplication and QApplication")
|
||||
QApplicationPrivate::setSystemPalette does no longer exist.
|
||||
|
||||
This style does explictly not support "system colors" defined by the platform
|
||||
theme, which have priority over the style provided palette. To prevent the
|
||||
theme from overriding the colors, it previously used the system palette
|
||||
mechanism (which has priority over the theme), but that way does not work
|
||||
anymore. Instead, simply use QApplication::setPalette. While that has
|
||||
different behaviour and might break in some applications, it's better than
|
||||
having a completely messed up palette with certain themes.
|
||||
This is the same change as suggested by gamezelda on
|
||||
https://aur.archlinux.org/packages/qt5-styleplugins/#comment-749190.
|
||||
|
||||
Index: qtstyleplugins-opensource-src-5.0.0+git20170311/src/plugins/styles/gtk2/qgtkstyle.cpp
|
||||
===================================================================
|
||||
--- qtstyleplugins-opensource-src-5.0.0+git20170311.orig/src/plugins/styles/gtk2/qgtkstyle.cpp
|
||||
+++ qtstyleplugins-opensource-src-5.0.0+git20170311/src/plugins/styles/gtk2/qgtkstyle.cpp
|
||||
@@ -440,7 +440,11 @@ void QGtkStyle::polish(QApplication *app
|
||||
// not supported as these should be entirely determined by
|
||||
// current Gtk settings
|
||||
if (app->desktopSettingsAware() && d->isThemeAvailable()) {
|
||||
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||
QApplicationPrivate::setSystemPalette(standardPalette());
|
||||
+#else
|
||||
+ QApplication::setPalette(standardPalette());
|
||||
+#endif
|
||||
QApplicationPrivate::setSystemFont(d->getThemeFont());
|
||||
d->applyCustomPaletteHash();
|
||||
if (!d->isKDE4Session())
|
||||
Index: qtstyleplugins-opensource-src-5.0.0+git20170311/src/plugins/styles/gtk2/qgtkstyle_p.cpp
|
||||
===================================================================
|
||||
--- qtstyleplugins-opensource-src-5.0.0+git20170311.orig/src/plugins/styles/gtk2/qgtkstyle_p.cpp
|
||||
+++ qtstyleplugins-opensource-src-5.0.0+git20170311/src/plugins/styles/gtk2/qgtkstyle_p.cpp
|
||||
@@ -508,7 +508,9 @@ void QGtkStyleUpdateScheduler::updateThe
|
||||
if (oldTheme != QGtkStylePrivate::getThemeName()) {
|
||||
oldTheme = QGtkStylePrivate::getThemeName();
|
||||
QPalette newPalette = qApp->style()->standardPalette();
|
||||
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||
QApplicationPrivate::setSystemPalette(newPalette);
|
||||
+#endif
|
||||
QApplication::setPalette(newPalette);
|
||||
if (!QGtkStylePrivate::instances.isEmpty()) {
|
||||
QGtkStylePrivate::instances.last()->initGtkWidgets();
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chewi@gentoo.org</email>
|
||||
<name>James Le Cuirot</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">qt/qtstyleplugins</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit qmake-utils
|
||||
|
||||
COMMIT="335dbece103e2cbf6c7cf819ab6672c2956b17b3"
|
||||
DESCRIPTION="Additional style plugins for Qt5 (gtk2, cleanlook, plastic, motif)"
|
||||
HOMEPAGE="https://code.qt.io/cgit/qt/qtstyleplugins.git/"
|
||||
SRC_URI="https://github.com/qt/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="5"
|
||||
KEYWORDS="amd64"
|
||||
|
||||
DEPEND="
|
||||
dev-qt/qtcore:5=
|
||||
dev-qt/qtgui:5=[dbus]
|
||||
dev-qt/qtwidgets:5=
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
x11-libs/pango
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/fix-build-qt5.15.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
eqmake5
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "To make Qt5 use the gtk2 style, set this in your environment:"
|
||||
elog " QT_QPA_PLATFORMTHEME=gtk2"
|
||||
}
|
||||
@@ -234,12 +234,6 @@ net-im/dianara
|
||||
# Removal on 2025-02-09. Bugs #947810, #856319, #844730, #771048, #679078.
|
||||
sys-cluster/zetcd
|
||||
|
||||
# James Le Cuirot <chewi@gentoo.org> (2025-01-09)
|
||||
# Obsolete and needs to be dropped along with Qt5. The GTK theme has been
|
||||
# superseded by dev-qt/qtbase[gtk], which uses GTK 3 rather than GTK 2.
|
||||
# Removal on 2025-02-09. See bug #947787.
|
||||
dev-qt/qtstyleplugins
|
||||
|
||||
# Conrad Kostecki <conikost@gentoo.org> (2025-01-09)
|
||||
# New version, which dropps support for legacy devices.
|
||||
# Will be unmasked, when split to legacy-branch is done.
|
||||
|
||||
Reference in New Issue
Block a user