123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- import QtQuick
- import QtQuick.Controls.Material
- import QtQuick.Controls.Material.impl
- RectangularGlow {
-
- property int offsetX
- property int offsetY
- property int blurRadius
- property int spreadRadius
-
-
- property Item source
- property bool fullWidth
- property bool fullHeight
- x: (parent.width - width)/2 + offsetX
- y: (parent.height - height)/2 + offsetY
- implicitWidth: source ? source.width : parent.width
- implicitHeight: source ? source.height : parent.height
- width: implicitWidth + 2 * spreadRadius + (fullWidth ? 2 * cornerRadius : 0)
- height: implicitHeight + 2 * spreadRadius + (fullHeight ? 2 * cornerRadius : 0)
- glowRadius: blurRadius/2
- spread: 0.05
-
-
- cornerRadius: blurRadius + (source && source.radius || 0)
- }
|