mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
12b6911635
Move all qml components into a dedicated qml subfolder. This was needed to fix linker errors where we would have a folder that has the same name as our executable.
29 lines
690 B
QML
29 lines
690 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Qt5Compat.GraphicalEffects
|
|
import QtQuick.Controls.Material.impl
|
|
import QtQuick.Controls.Material
|
|
import ScreenPlayApp 1.0
|
|
import ScreenPlay 1.0
|
|
|
|
Dialog {
|
|
id: root
|
|
property Item modalSource
|
|
dim: true
|
|
anchors.centerIn: Overlay.overlay
|
|
modal: true
|
|
focus: true
|
|
|
|
Overlay.modal: ModalBackgroundBlur {
|
|
id: blurBg
|
|
sourceItem: root.modalSource
|
|
hideSource: root.hideSource
|
|
}
|
|
// Workaround for missing animation on hide
|
|
// when using hideSource
|
|
property bool hideSource: true
|
|
onAboutToHide: root.hideSource = false
|
|
onAboutToShow: root.hideSource = true
|
|
}
|