From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/digikam/files/, media-gfx/digikam/
Date: Tue, 25 Jul 2023 10:02:23 +0000 (UTC) [thread overview]
Message-ID: <1690279330.568b05e64aaeb061f7acd7647185a07c199e054c.asturm@gentoo> (raw)
commit: 568b05e64aaeb061f7acd7647185a07c199e054c
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 25 09:52:59 2023 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jul 25 10:02:10 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=568b05e6
media-gfx/digikam: Fix default config for scaling w/ high-res support
Upstream commit 35e5817353709c5c16521fee116bb3c70196aa0f
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=457272
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
media-gfx/digikam/digikam-8.1.0-r1.ebuild | 5 ++-
...1.0-fix-config-for-scaling-high-res-icons.patch | 45 ++++++++++++++++++++++
2 files changed, 49 insertions(+), 1 deletion(-)
diff --git a/media-gfx/digikam/digikam-8.1.0-r1.ebuild b/media-gfx/digikam/digikam-8.1.0-r1.ebuild
index 06c5f19b3377..8f9f07301fc9 100644
--- a/media-gfx/digikam/digikam-8.1.0-r1.ebuild
+++ b/media-gfx/digikam/digikam-8.1.0-r1.ebuild
@@ -109,7 +109,10 @@ BDEPEND="
)
"
-PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-cmake.patch"
+ "${FILESDIR}/${P}-fix-config-for-scaling-high-res-icons.patch" # 8.2.0, KDE-bug #457272
+)
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
diff --git a/media-gfx/digikam/files/digikam-8.1.0-fix-config-for-scaling-high-res-icons.patch b/media-gfx/digikam/files/digikam-8.1.0-fix-config-for-scaling-high-res-icons.patch
new file mode 100644
index 000000000000..3ec2889d4090
--- /dev/null
+++ b/media-gfx/digikam/files/digikam-8.1.0-fix-config-for-scaling-high-res-icons.patch
@@ -0,0 +1,45 @@
+From 35e5817353709c5c16521fee116bb3c70196aa0f Mon Sep 17 00:00:00 2001
+From: Maik Qualmann <metzpinguin@gmail.com>
+Date: Tue, 18 Jul 2023 18:31:51 +0200
+Subject: [PATCH] for a new config under Linux scaling and high-resolution
+ icons are enabled BUGS: 457272 FIXED-IN: 8.2.0
+
+---
+ core/utilities/setup/misc/systemsettings.cpp | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/core/utilities/setup/misc/systemsettings.cpp b/core/utilities/setup/misc/systemsettings.cpp
+index f4e15803a11..c164bb0cd36 100644
+--- a/core/utilities/setup/misc/systemsettings.cpp
++++ b/core/utilities/setup/misc/systemsettings.cpp
+@@ -22,6 +22,7 @@
+ // Local includes
+
+ #include "digikam_debug.h"
++#include "digikam_config.h"
+
+ namespace Digikam
+ {
+@@ -56,8 +57,19 @@ void SystemSettings::readSettings()
+ QSettings settings(m_path, QSettings::IniFormat);
+
+ settings.beginGroup(QLatin1String("System"));
++
++#ifdef Q_OS_LINUX
++
++ useHighDpiScaling = settings.value(QLatin1String("useHighDpiScaling"), true).toBool();
++ useHighDpiPixmaps = settings.value(QLatin1String("useHighDpiPixmaps"), true).toBool();
++
++#else
++
+ useHighDpiScaling = settings.value(QLatin1String("useHighDpiScaling"), false).toBool();
+ useHighDpiPixmaps = settings.value(QLatin1String("useHighDpiPixmaps"), false).toBool();
++
++#endif
++
+ disableFaceEngine = settings.value(QLatin1String("disableFaceEngine"), false).toBool();
+ enableLogging = settings.value(QLatin1String("enableLogging"), false).toBool();
+ disableOpenCL = settings.value(QLatin1String("disableOpenCL"), true).toBool();
+--
+GitLab
+
next reply other threads:[~2023-07-25 10:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 10:02 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-06 23:04 [gentoo-commits] repo/gentoo:master commit in: media-gfx/digikam/files/, media-gfx/digikam/ Andreas Sturmlechner
2024-07-23 16:11 Andreas Sturmlechner
2024-04-22 17:07 Andreas Sturmlechner
2023-07-08 16:06 Andreas Sturmlechner
2023-04-30 13:48 Andreas Sturmlechner
2023-04-25 15:35 Andreas Sturmlechner
2022-10-12 19:41 Andreas Sturmlechner
2021-11-26 10:27 Andreas Sturmlechner
2020-11-12 20:57 Andreas Sturmlechner
2020-06-30 21:44 Andreas Sturmlechner
2019-08-22 14:16 Andreas Sturmlechner
2019-02-17 22:59 Andreas Sturmlechner
2018-05-02 19:12 Johannes Huber
2017-12-18 18:48 Andreas Sturmlechner
2017-12-06 22:08 Andreas Sturmlechner
2017-11-29 19:00 Andreas Sturmlechner
2016-12-08 17:44 Johannes Huber
2015-12-29 16:02 Michael Palimaka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1690279330.568b05e64aaeb061f7acd7647185a07c199e054c.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox