summaryrefslogtreecommitdiff
path: root/src/controls/Styles/Base/PieMenuStyle.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-08-14 14:45:28 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-05 17:03:33 +0000
commit29f1e31c673123ce49c59f0feeea39f19a5707e7 (patch)
treec0b0a281db5c79a6b7b950e0fd2e52d284da832e /src/controls/Styles/Base/PieMenuStyle.qml
parenta68b58a35aeafad279236d31c28acda02baff5cf (diff)
downloadqtquickcontrols-29f1e31c673123ce49c59f0feeea39f19a5707e7.tar.gz
Extras: fix DropShadow usage.
It's now recommended to use the samples property instead of radius. The radius property is calculated for us based on the samples. Task-number: QTBUG-47749 Change-Id: Ic29c91a1ca9961c74a6ad727ff7c9c671bf55929 Reviewed-by: Gunnar Sletta <gunnar@sletta.org> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls/Styles/Base/PieMenuStyle.qml')
-rw-r--r--src/controls/Styles/Base/PieMenuStyle.qml24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/controls/Styles/Base/PieMenuStyle.qml b/src/controls/Styles/Base/PieMenuStyle.qml
index fdfa92e7..6137cc91 100644
--- a/src/controls/Styles/Base/PieMenuStyle.qml
+++ b/src/controls/Styles/Base/PieMenuStyle.qml
@@ -115,13 +115,25 @@ Style {
/*! The selection color. */
property color selectionColor: "#eee"
- /*! The shadow color. */
+ /*!
+ The shadow color.
+
+ \sa DropShadow
+ */
property color shadowColor: Qt.rgba(0, 0, 0, 0.26)
- /*! The shadow radius. */
- property real shadowRadius: 50
+ /*!
+ The shadow radius.
- /*! The shadow spread. */
+ \sa DropShadow
+ */
+ property real shadowRadius: 10
+
+ /*!
+ The shadow spread.
+
+ \sa DropShadow
+ */
property real shadowSpread: 0.3
/*!
@@ -366,11 +378,9 @@ Style {
DropShadow {
id: dropShadow
anchors.fill: itemgroup
- fast: true
- radius: shadowRadius
spread: shadowSpread
+ samples: shadowRadius * 2 + 1
transparentBorder: true
- samples: 12
color: shadowColor
source: itemgroup
}