Warning, /plasma/plasma-mobile/shell/contents/configuration/ContainmentConfiguration.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org>
0002 // SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 import QtQuick 2.12
0006 import QtQuick.Layouts 1.0
0007 import QtQuick.Window 2.2
0008 import QtQuick.Controls 2.15 as Controls
0009 
0010 import org.kde.kirigami 2.20 as Kirigami
0011 import org.kde.plasma.components 3.0 as PlasmaComponents3
0012 import org.kde.plasma.core as PlasmaCore
0013 import org.kde.plasma.configuration 2.0
0014 import org.kde.ksvg 1.0 as KSvg
0015 
0016 AppletConfiguration {
0017     id: root
0018     isContainment: true
0019     loadApp: true
0020 
0021     readonly property bool horizontal: root.width > root.height
0022 
0023     onAppLoaded: {
0024         app.width = root.width < root.height ? root.width : Math.min(root.width, Math.max(app.implicitWidth, Kirigami.Units.gridUnit * 45));
0025         app.height = Math.min(root.height, Math.max(app.implicitHeight, Kirigami.Units.gridUnit * 29));
0026     }
0027     
0028 //BEGIN model
0029     globalConfigModel: globalContainmentConfigModel
0030 
0031     ConfigModel {
0032         id: globalContainmentConfigModel
0033         ConfigCategory {
0034             name: i18nd("plasma_shell_org.kde.plasma.desktop", "Wallpaper")
0035             icon: "preferences-desktop-wallpaper"
0036             source: "ConfigurationContainmentAppearance.qml"
0037         }
0038     }
0039 //END model
0040 }