Warning, /plasma/plasma-mobile/quicksettings/airplanemode/contents/ui/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Bhushan Shah <bshah@kde.org> 0003 * SPDX-FileCopyrightText: 2021 Nicolas Fella <nicolas.fella@gmx.de> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 import org.kde.plasma.networkmanagement as PlasmaNM 0009 import org.kde.plasma.private.mobileshell.quicksettingsplugin as QS 0010 0011 QS.QuickSetting { 0012 text: i18n("Airplane Mode") 0013 icon: "network-flightmode-on" 0014 status: "" 0015 enabled: PlasmaNM.Configuration.airplaneModeEnabled 0016 0017 PlasmaNM.Handler { 0018 id: nmHandler 0019 } 0020 0021 function toggle() { 0022 nmHandler.enableAirplaneMode(!PlasmaNM.Configuration.airplaneModeEnabled); 0023 PlasmaNM.Configuration.airplaneModeEnabled = !PlasmaNM.Configuration.airplaneModeEnabled; 0024 } 0025 }