2021-04-09 20:59:05 +00:00
|
|
|
/*
|
2024-10-03 15:23:11 +00:00
|
|
|
* SPDX-FileCopyrightText: 2024 Sebastian Kügler <sebas@kde.org>
|
2021-12-22 23:29:00 +00:00
|
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
2021-04-09 20:59:05 +00:00
|
|
|
* SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
2023-10-19 17:41:29 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
2023-03-16 07:21:01 +00:00
|
|
|
import QtQuick
|
2021-04-09 20:59:05 +00:00
|
|
|
|
2024-10-03 15:23:11 +00:00
|
|
|
import org.kde.plasma.private.battery
|
2021-04-09 20:59:05 +00:00
|
|
|
|
2024-10-03 15:23:11 +00:00
|
|
|
Item {
|
2024-07-27 03:47:44 +00:00
|
|
|
|
2024-10-03 15:23:11 +00:00
|
|
|
BatteryControlModel {
|
|
|
|
|
id: batteryControl
|
2021-04-09 20:59:05 +00:00
|
|
|
}
|
2024-10-03 15:23:11 +00:00
|
|
|
|
|
|
|
|
property bool isVisible: batteryControl.hasInternalBatteries
|
|
|
|
|
property int percent: batteryControl.percent
|
|
|
|
|
property bool pluggedIn: batteryControl.pluggedIn
|
|
|
|
|
property alias batteries: batteryControl
|
2021-04-09 20:59:05 +00:00
|
|
|
}
|