StudioWelcome: Remove effect from splash screen

Not supported with Qt 6.

Change-Id: Ie12c5b15caaa6b80dcb3dc26fdf43b360b6761a5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-06-15 14:30:34 +02:00
parent 7445386581
commit f62d3c7266
2 changed files with 5 additions and 49 deletions

View File

@@ -23,19 +23,13 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.0 import QtQuick 2.0
import QtGraphicalEffects 1.0
Item { Item {
id: root id: root
default property alias content: stack.children default property alias content: stack.children
property alias maskBlurRadius: maskedBlur.radius property alias maskBlurRadius: maskedBlur.radius
property alias maskBlurSamples: maskedBlur.samples property alias maskBlurSamples: maskedBlur.samples
property alias gradientStopPosition1: stop1.position
property alias gradientStopPosition2: stop2.position
property alias gradientStopPosition3: stop3.position
property alias gradientStopPosition4: stop4.position
property alias maskRotation: gradient.rotation
Row { Row {
visible: true visible: true
@@ -47,47 +41,13 @@ Item {
width: stack.width width: stack.width
height: stack.height height: stack.height
visible: false visible: false
LinearGradient {
id: gradient
height: stack.height * 2
width: stack.width * 2
y: -stack.height / 2
x: -stack.width / 2
rotation: 0
gradient: Gradient {
GradientStop {
id: stop1
position: 0.2
color: "#ffffffff"
}
GradientStop {
id: stop2
position: 0.5
color: "#00ffffff"
}
GradientStop {
id: stop3
position: 0.8
color: "#00ffffff"
}
GradientStop {
id: stop4
position: 1.0
color: "#ffffffff"
}
}
start: Qt.point(stack.width / 2, 0)
end: Qt.point(stack.width + stack.width / 2, 100)
}
} }
MaskedBlur { ShaderEffectSource {
id: maskedBlur id: maskedBlur
anchors.fill: stack anchors.fill: stack
source: stack sourceItem: stack
maskSource: mask property real radius: 0
radius: 32 property real samples: 0
samples: 16
} }
} }

View File

@@ -192,10 +192,6 @@ Image {
visible: true visible: true
maskBlurSamples: 64 maskBlurSamples: 64
maskBlurRadius: 32 maskBlurRadius: 32
gradientStopPosition4: 1.3
gradientStopPosition3: 0.9
gradientStopPosition2: 0.6
gradientStopPosition1: 0
Splash_Image25d { Splash_Image25d {
id: animated_artwork id: animated_artwork