mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-05 18:42:29 +01:00
bcfb188cf2
Fix sidebar
27 lines
626 B
QML
27 lines
626 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import Qt5Compat.GraphicalEffects
|
|
import QtQuick.Controls.Material
|
|
import QtQuick.Layouts
|
|
import ScreenPlayUtil
|
|
|
|
Popup {
|
|
id: root
|
|
property Item modalSource
|
|
// Workaround for missing animation on hide
|
|
// when using hideSource
|
|
property bool aboutToHide: false
|
|
dim: true
|
|
anchors.centerIn: Overlay.overlay
|
|
modal: true
|
|
focus: true
|
|
|
|
Overlay.modal: ModalBackgroundBlur {
|
|
id: blurBg
|
|
sourceItem: root.modalSource
|
|
hideSource: root.aboutToHide
|
|
}
|
|
onAboutToHide: root.aboutToHide = false
|
|
onClosed: root.aboutToHide = true
|
|
}
|