shift-shell/components/mobileshell/qml/dataproviders/SignalStrengthProvider.qml
Devin Lin 210042a6bf libmobileshell: Move back to QML plugin
Move from a C++ library + QML plugin to a QML plugin only for simplicity, since the homescreen switching architecture will be done from Plasma, and so use of the shell library only needs to be from QML.
2022-03-21 10:00:09 -04:00

21 lines
577 B
QML

/*
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
* SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.1
import org.kde.plasma.mm 1.0
pragma Singleton
QtObject {
property string icon: "network-mobile-" + Math.floor(SignalIndicator.strength / 20) * 20
property string label: !SignalIndicator.available ? ""
: SignalIndicator.simLocked ? i18n("SIM Locked") : SignalIndicator.name
}