krita/0001-Fix-popup-palette-with-Qt-5.9.4.patch
Fabian Vogt fd2a37e0a1 Accepting request 663615 from home:wolfi323:branches:KDE:Extra
- Add 0001-Fix-popup-palette-with-Qt-5.9.4.patch to work around a
  bug in Qt 5.9.4 that broke krita's popup palette on Leap 15.0
  (boo#1120639)

OBS-URL: https://build.opensuse.org/request/show/663615
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=92
2019-01-08 12:01:51 +00:00

34 lines
1.0 KiB
Diff

From 959ce0c5514ea6456fca99a52b0d9b131f5b9353 Mon Sep 17 00:00:00 2001
From: Wolfgang Bauer <wbauer@tmo.at>
Date: Tue, 8 Jan 2019 10:13:22 +0100
Subject: [PATCH] Fix popup palette with Qt 5.9.4
References: boo#1120639
References: QTBUG-66803
This works around a regression in Qt 5.9.4 (fixed in 5.9.5) that causes
krita's popup palette to be cropped when the opacity is set to 1.0, by
setting it to 0.999 instead.
---
libs/ui/kis_popup_palette.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libs/ui/kis_popup_palette.cpp b/libs/ui/kis_popup_palette.cpp
index bcb5301b6e..efa7647817 100644
--- a/libs/ui/kis_popup_palette.cpp
+++ b/libs/ui/kis_popup_palette.cpp
@@ -611,7 +611,11 @@ void KisPopupPalette::paintEvent(QPaintEvent* e)
if(m_isRotatingCanvasIndicator || m_isZoomingCanvas) {
opacityChange->setOpacity(0.4);
} else {
+#if QT_VERSION == QT_VERSION_CHECK(5,9,4)
+ opacityChange->setOpacity(0.999);
+#else
opacityChange->setOpacity(1.0);
+#endif
}
}
--
2.16.4