mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
27 lines
504 B
QML
27 lines
504 B
QML
import QtQuick
|
|
import "../../widgets/" as Widgets
|
|
|
|
Item {
|
|
id: root
|
|
|
|
required property var popup
|
|
|
|
Widgets.FontIconButton {
|
|
id: button
|
|
iconName: "volume_up"
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
if (root.popup.content == volumeMenu) {
|
|
root.popup.hide();
|
|
return;
|
|
}
|
|
|
|
root.popup.set(this, volumeMenu);
|
|
root.popup.show();
|
|
}
|
|
}
|
|
|
|
VolumeControl {
|
|
id: volumeMenu
|
|
}
|
|
}
|