Warning, /plasma/plasma-mobile/quicksettings/screenrotation/package/contents/ui/main.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003
0004 import QtQuick 2.15
0005
0006 import org.kde.plasma.quicksetting.screenrotation 1.0
0007 import org.kde.plasma.private.mobileshell.quicksettingsplugin as QS
0008
0009 QS.QuickSetting {
0010 text: i18n("Auto-rotate")
0011 icon: "rotation-allowed"
0012 settingsCommand: "plasma-open-settings kcm_kscreen"
0013 enabled: ScreenRotationUtil.autoScreenRotationEnabled
0014 available: ScreenRotationUtil.available
0015
0016 function toggle() {
0017 ScreenRotationUtil.autoScreenRotationEnabled = !enabled
0018 }
0019 }