Commit 1f52b578 authored by Marco Martin's avatar Marco Martin
Browse files

first commit

parents
This diff is collapsed.
// -*- coding: iso-8859-1 -*-
/*
SPDX-FileCopyrightText: 2021 Marco Martin <mart@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.0
import QtQuick.Layouts 1.4
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents
import org.kde.plasma.plasmoid 2.0
ColumnLayout {
id: root
property int availableScreenRectChanges: 0
implicitWidth: PlasmaCore.Units.gridUnit * 15
property var screenRects: []
property var availableScreenRects: []
Plasmoid.onAvailableScreenRectChanged: {
availableScreenRects.push(plasmoid.availableScreenRect.toString())
availableScreenRectsChanged();
}
Plasmoid.onScreenGeometryChanged: {
screenRects.push(plasmoid.screenGeometry.toString())
screenRectsChanged();
}
Component.onCompleted: {
availableScreenRects.push(plasmoid.availableScreenRect.toString())
screenRects.push(plasmoid.screenGeometry.toString())
}
PlasmaComponents.Label {
text: i18n("Screen Geometry changed %1 times:", root.screenRects.length);
}
Flow {
Layout.fillWidth: true
Repeater {
model: root.screenRects.length
PlasmaComponents.Label {
text: root.screenRects[modelData]
}
}
}
PlasmaComponents.Label {
text: i18n("AvailableScreenRect changes %1 times:", root.availableScreenRects.length);
}
Flow {
Layout.fillWidth: true
Repeater {
model: root.availableScreenRects.length
PlasmaComponents.Label {
text: root.availableScreenRects[modelData]
}
}
}
}
[Desktop Entry]
Name=Containment Debug
Comment=Debugs some parameters that come from the containment to the applets useful in some kinds of bug reports
Icon=plasma
Keywords=
Type=Service
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Marco Martin
X-KDE-PluginInfo-Category=Development
X-KDE-PluginInfo-Email=mart@kde.org
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-Name=org.kde.plasma.containmentdebug
X-KDE-PluginInfo-Version=
X-KDE-PluginInfo-Website=
X-KDE-ServiceTypes=Plasma/Applet
X-Plasma-API=declarativeappletscript
X-Plasma-MainScript=ui/main.qml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment