| 1 |
// SPDX-License-Identifier: GPL-3.0-or-later |
| 2 |
// Copyright 2021 Juan Palacios <[email protected]> |
| 3 |
|
| 4 |
import QtQuick 2.15 |
| 5 |
import CoreCtrl.UIComponents 1.0 |
| 6 |
|
| 7 |
AMD_PM_POWERSTATE_MODE { |
| 8 |
id: pStateMode |
| 9 |
objectName: "AMD_PM_POWERSTATE_MODE" |
| 10 |
|
| 11 |
width: modeSelector.width |
| 12 |
height: modeSelector.height |
| 13 |
|
| 14 |
onModesChanged: modes => modeSelector.setModes(modes) |
| 15 |
onModeChanged: mode => modeSelector.select(mode) |
| 16 |
|
| 17 |
ModeSelector { |
| 18 |
id: modeSelector |
| 19 |
headerTitle: qsTr("Power management mode") |
| 20 |
contentParentObject: "AMD_PM_POWERSTATE_MODE_Plug" |
| 21 |
|
| 22 |
onSelectionChanged: mode => pStateMode.changeMode(mode) |
| 23 |
onChildAdded: child => pStateMode.setupChild(child) |
| 24 |
} |
| 25 |
} |