mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
new popup system
This commit is contained in:
parent
d32bedda31
commit
a416887d3b
5 changed files with 138 additions and 255 deletions
|
|
@ -24,8 +24,7 @@ Variants {
|
|||
right: true
|
||||
}
|
||||
|
||||
PopupHandler {
|
||||
id: popupHandler
|
||||
readonly property Popup popup: Popup {
|
||||
bar: root
|
||||
}
|
||||
|
||||
|
|
@ -43,6 +42,7 @@ Variants {
|
|||
spacing: 15
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
|
||||
Workspaces {
|
||||
screen: root.screen
|
||||
|
|
@ -64,40 +64,10 @@ Variants {
|
|||
|
||||
SysTray {
|
||||
id: sysTray
|
||||
popup: popupHandler
|
||||
bar: root
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
PopupItem {
|
||||
id: test
|
||||
Layout.preferredWidth: 20
|
||||
Layout.fillHeight: true
|
||||
|
||||
onClicked: {
|
||||
popupHandler.set(test);
|
||||
}
|
||||
|
||||
menu: Rectangle {
|
||||
implicitWidth: 100
|
||||
implicitHeight: 100
|
||||
}
|
||||
}
|
||||
|
||||
PopupItem {
|
||||
id: test2
|
||||
Layout.preferredWidth: 20
|
||||
Layout.fillHeight: true
|
||||
|
||||
onClicked: {
|
||||
popupHandler.set(test2);
|
||||
}
|
||||
|
||||
menu: Rectangle {
|
||||
implicitWidth: 200
|
||||
implicitHeight: 200
|
||||
}
|
||||
}
|
||||
|
||||
// VolumeIndicator {
|
||||
// id: volumeIndicator
|
||||
// popup: root.popup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue