mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-25 14:02:53 -05:00
52 lines
1.1 KiB
QML
52 lines
1.1 KiB
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Modules.ControlCenter.Details
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property string expandedSection: ""
|
|
|
|
Loader {
|
|
width: parent.width
|
|
height: 250
|
|
y: Theme.spacingS
|
|
active: parent.height > 0
|
|
sourceComponent: {
|
|
switch (root.expandedSection) {
|
|
case "network":
|
|
case "wifi": return networkDetailComponent
|
|
case "bluetooth": return bluetoothDetailComponent
|
|
case "audioOutput": return audioOutputDetailComponent
|
|
case "audioInput": return audioInputDetailComponent
|
|
case "battery": return batteryDetailComponent
|
|
default: return null
|
|
}
|
|
}
|
|
}
|
|
|
|
Component {
|
|
id: networkDetailComponent
|
|
NetworkDetail {}
|
|
}
|
|
|
|
Component {
|
|
id: bluetoothDetailComponent
|
|
BluetoothDetail {}
|
|
}
|
|
|
|
Component {
|
|
id: audioOutputDetailComponent
|
|
AudioOutputDetail {}
|
|
}
|
|
|
|
Component {
|
|
id: audioInputDetailComponent
|
|
AudioInputDetail {}
|
|
}
|
|
|
|
Component {
|
|
id: batteryDetailComponent
|
|
BatteryDetail {}
|
|
}
|
|
} |