1
0
Fork 0
quickshell-examples/lockscreen/test.qml

26 lines
334 B
QML
Raw Normal View History

2024-03-08 11:42:49 +00:00
import QtQuick
import Quickshell
ShellRoot {
LockContext {
id: lockContext
onUnlocked: Qt.quit();
2024-03-08 11:42:49 +00:00
}
FloatingWindow {
LockSurface {
2024-03-08 11:42:49 +00:00
anchors.fill: parent
context: lockContext
}
}
// exit the example if the window closes
Connections {
target: Quickshell
function onLastWindowClosed() {
Qt.quit();
2024-03-08 11:42:49 +00:00
}
}
}