mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
This change ports BatteryInfo away from dataengines to the new battery model that is also used for Plasma Desktop. Signed-off-by: Sebastian Kügler <sebas@kde.org>
25 lines
600 B
QML
25 lines
600 B
QML
/*
|
|
* SPDX-FileCopyrightText: 2024 Sebastian Kügler <sebas@kde.org>
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
* SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
pragma Singleton
|
|
|
|
import QtQuick
|
|
|
|
import org.kde.plasma.private.battery
|
|
|
|
Item {
|
|
|
|
BatteryControlModel {
|
|
id: batteryControl
|
|
}
|
|
|
|
property bool isVisible: batteryControl.hasInternalBatteries
|
|
property int percent: batteryControl.percent
|
|
property bool pluggedIn: batteryControl.pluggedIn
|
|
property alias batteries: batteryControl
|
|
}
|