From 959ce0c5514ea6456fca99a52b0d9b131f5b9353 Mon Sep 17 00:00:00 2001 From: Wolfgang Bauer 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