From c8ba132f6ca78f63440f21e9a18f9e90f62377f1 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Mon, 1 Jul 2019 16:02:17 +0200 Subject: Bump version Change-Id: Ie82e64a2304ab61eb5c712b2397f172932bdc2a2 --- .qmake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.qmake.conf b/.qmake.conf index f1a6177..b5454e5 100644 --- a/.qmake.conf +++ b/.qmake.conf @@ -1,3 +1,3 @@ load(qt_build_config) -MODULE_VERSION = 5.12.4 +MODULE_VERSION = 5.12.5 -- cgit v1.2.1 From f9664053132affe48a069235eb6561a32d38b2a7 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Fri, 28 Jun 2019 08:54:24 +0200 Subject: Account for the device pixel ratio when showing a DropShadow The radius and samples needs to be multiplied by the device pixel ratio so that it looks as it would if it was on a non HighDpi screen. So the size of the shadow still looks the same size and as good. Change-Id: Ifa87ec6fad5cdded1a7b1888b2e8c74bcc3f0b54 Reviewed-by: Shawn Rutledge --- src/effects/private/DropShadowBase.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/effects/private/DropShadowBase.qml b/src/effects/private/DropShadowBase.qml index 7e80e47..e9927ea 100644 --- a/src/effects/private/DropShadowBase.qml +++ b/src/effects/private/DropShadowBase.qml @@ -38,6 +38,7 @@ ****************************************************************************/ import QtQuick 2.12 +import QtQuick.Window 2.12 import QtGraphicalEffects.private 1.12 import QtGraphicalEffects 1.12 @@ -61,8 +62,8 @@ Item { x: Math.round(horizontalOffset) y: Math.round(verticalOffset) source: root.source - radius: root.radius - samples: root.samples + radius: root.radius * Screen.devicePixelRatio + samples: root.samples * Screen.devicePixelRatio _thickness: root.spread transparentBorder: root.transparentBorder -- cgit v1.2.1