/* SPDX-FileCopyrightText: 2021 Noah Davis <noahadvs@gmail.com>* SPDX-License-Identifier: LGPL-2.0-or-later*/pragma ComponentBehavior: Boundpragma Singleton // NOTE: Singletons are shared between all instances of a plasmoidimport QtQuickimport org.kde.kirigami as Kirigamiimport org.kde.ksvg as KSvgimport org.kde.plasma.plasma5support as P5Supportimport org.kde.plasma.components as PC3// Using Item because it has a default property.// Trying to create a default property for a QtObject seems to cause segfaults.Item {id: rootvisible: false//BEGIN Models and Data Sourcesreadonly property P5Support.DataSource powerManagement: P5Support.DataSource {engine: "powermanagement"connectedSources: ["PowerDevil"]// For some reason, these signal handlers need to be here for `data` to actually contain data.onSourceAdded: source => {disconnectSource(source);connectSource(source);}onSourceRemoved: source => disconnectSource(source);}//END//BEGIN Reusable Objectsreadonly property KSvg.Svg lineSvg: KSvg.Svg {imagePath: "widgets/line"property int horLineHeight: elementSize("horizontal-line").heightproperty int vertLineWidth: elementSize("vertical-line").width}//END//BEGIN Metricsreadonly property KSvg.FrameSvgItem listItemMetrics: KSvg.FrameSvgItem {visible: falseimagePath: "widgets/listitem"prefix: "normal"}readonly property FontMetrics fontMetrics: FontMetrics {id: fontMetricsfont: Kirigami.Theme.defaultFont}readonly property real gridCellSize: gridDelegate.implicitHeightreadonly property real compactListDelegateHeight: compactListDelegate.implicitHeightreadonly property real compactListDelegateContentHeight: compactListDelegate.implicitContentHeight//END//BEGIN PrivateKickoffGridDelegate {id: gridDelegatevisible: falseenabled: falsemodel: nullindex: -1text: "asdf"url: ""decoration: "start-here-kde"description: "asdf"PC3.ToolTip.text: ""width: implicitHeightaction: nullindicator: nullisMultilineText: false}KickoffListDelegate {id: compactListDelegatevisible: falseenabled: falsecompact: truemodel: nullindex: -1text: "asdf"url: ""decoration: "start-here-kde"PC3.ToolTip.text: ""description: "asdf"action: nullindicator: nullisMultilineText: false}//END}