Merge remote-tracking branch 'origin/xenial_-_qt-5-12' into xenial_-_qt-5-12_-_wayland
commit1a2034b5ba2afe949ab3fb58475de3df9cb73d5c
authorRodney Dawes <dobey@ubports.com>
dateWed 4 Nov 2020, 13:37 (6 years ago)
parent447317fc6bc1b1
qml/Stage/Splash.qml+9−1
@@ -32,6 +32,9 @@ Item {
3232 property alias title: header.title
3333 property alias showHeader: header.visible
3434
35+ // Set clip to prevent drawing outside the window rectangle
36+ clip: true
37+
3538 Ambiance.Palette {
3639 id: ambiancePalette
3740 }
@@ -87,11 +90,16 @@ Item {
8790
8891 Image {
8992 id: overlaidImage
90− anchors.fill: parent
93+ anchors.centerIn: parent
9194 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
95+ sourceSize {
96+ width: root.width
97+ height: root.height
98+ }
9299 asynchronous: true
93100 fillMode: Image.PreserveAspectFit
94101 cache: false
102+ clip: true
95103 }
96104
97105 UbuntuShape {