mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
core/window: add parentWindow property to FloatingWindow
This commit is contained in:
parent
ceac3c6cfa
commit
b4e71cb2c0
5 changed files with 161 additions and 2 deletions
42
src/window/test/manual/parentwindow.qml
Normal file
42
src/window/test/manual/parentwindow.qml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls.Fusion
|
||||
import Quickshell
|
||||
|
||||
Scope {
|
||||
FloatingWindow {
|
||||
id: control
|
||||
color: contentItem.palette.window
|
||||
ColumnLayout {
|
||||
CheckBox {
|
||||
id: parentCb
|
||||
text: "Show parent"
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
id: dialogCb
|
||||
text: "Show dialog"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FloatingWindow {
|
||||
id: parentw
|
||||
Text {
|
||||
text: "parent"
|
||||
}
|
||||
visible: parentCb.checked
|
||||
color: contentItem.palette.window
|
||||
|
||||
FloatingWindow {
|
||||
id: dialog
|
||||
parentWindow: parentw
|
||||
visible: dialogCb.checked
|
||||
color: contentItem.palette.window
|
||||
|
||||
Text {
|
||||
text: "dialog"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue