summaryrefslogtreecommitdiff
path: root/Shop
diff options
context:
space:
mode:
Diffstat (limited to 'Shop')
-rw-r--r--Shop/Course.ui.qml21
1 files changed, 14 insertions, 7 deletions
diff --git a/Shop/Course.ui.qml b/Shop/Course.ui.qml
index 565cd53..25efed2 100644
--- a/Shop/Course.ui.qml
+++ b/Shop/Course.ui.qml
@@ -1,7 +1,7 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
-import Qt5Compat.GraphicalEffects
+import QtQuick.Effects
import Bootstrap
ColumnLayout {
@@ -41,14 +41,21 @@ ColumnLayout {
}
source: imageSource
fillMode: Image.PreserveAspectFit
- layer.enabled: true
- layer.effect: OpacityMask {
- maskSource: Rectangle {
- width: courseItemImage.width
- height: courseItemImage.height
- radius: 5.2
+ layer {
+ enabled: true
+ effect: MultiEffect {
+ maskEnabled: true
+ maskSource: maskRectangle
}
}
+ Rectangle {
+ id: maskRectangle
+ width: courseItemImage.width
+ height: courseItemImage.height
+ radius: 5.2
+ layer.enabled: true
+ visible: false
+ }
}
}