Commit 3e0e3ce8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Use QQC2.Popup instead of Kirigami.OverlaySheet for screenshots

Overall, it's a simpler implementation

BUG: 385115
parent 061360f1
......@@ -21,6 +21,7 @@
import QtQuick 2.1
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.1
import QtQuick.Controls 2.1 as QQC2
import org.kde.discover 2.0
import org.kde.kirigami 2.0 as Kirigami
......@@ -34,10 +35,19 @@ Flow {
property QtObject page
visible: screenshotsModel.count>0
readonly property var fu: Kirigami.OverlaySheet {
QQC2.Popup {
id: overlay
parent: applicationWindow().overlay
modal: true
x: (parent.width - width)/2
y: (parent.height - height)/2
height: Math.min(parent.height * 0.9, overlayImage.sourceSize.height)
width: Math.min(parent.width * 0.9, overlayImage.sourceSize.width)
Image {
id: overlayImage
anchors.fill: parent
fillMode: Image.PreserveAspectFit
smooth: true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment