mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
17 lines
530 B
QML
17 lines
530 B
QML
// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
|
// SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
import QtQuick 2.15
|
|
|
|
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
|
import org.kde.plasma.quicksetting.screenrotation 1.0
|
|
|
|
MobileShell.QuickSetting {
|
|
text: i18n("Auto-rotate")
|
|
icon: "rotation-allowed"
|
|
settingsCommand: "plasma-open-settings kcm_kscreen"
|
|
enabled: ScreenRotationUtil.screenRotationEnabled
|
|
function toggle() {
|
|
ScreenRotationUtil.screenRotationEnabled = !enabled
|
|
}
|
|
}
|