on xenial help sign in
Merge remote-tracking branch 'origin/xenial_-_qt-5-12' into xenial_-_qt-5-12_-_wayland
1a2034bRodney Dawes
qml/Stage/Splash.qml+9−1
@@ -32,6 +32,9 @@ Item {
32 property alias title: header.title
32 property alias title: header.title
33 property alias showHeader: header.visible
33 property alias showHeader: header.visible
34
34
35+ // Set clip to prevent drawing outside the window rectangle
36+ clip: true
37+
35 Ambiance.Palette {
38 Ambiance.Palette {
36 id: ambiancePalette
39 id: ambiancePalette
37 }
40 }
@@ -87,11 +90,16 @@ Item {
87
90
88 Image {
91 Image {
89 id: overlaidImage
92 id: overlaidImage
90− anchors.fill: parent
93+ anchors.centerIn: parent
91 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
94 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
95+ sourceSize {
96+ width: root.width
97+ height: root.height
98+ }
92 asynchronous: true
99 asynchronous: true
93 fillMode: Image.PreserveAspectFit
100 fillMode: Image.PreserveAspectFit
94 cache: false
101 cache: false
102+ clip: true
95 }
103 }
96
104
97 UbuntuShape {
105 UbuntuShape {