Warning, /plasma/libksysguard/faces/facepackages/piechart/contents/ui/CompactRepresentation.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org> 0003 SPDX-FileCopyrightText: 2019 David Edmundson <davidedmundson@kde.org> 0004 SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl> 0005 SPDX-FileCopyrightText: 2019 Kai Uwe Broulik <kde@broulik.de> 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 import QtQuick 0011 import QtQuick.Controls as QQC2 0012 import QtQuick.Layouts 0013 0014 import org.kde.kirigami as Kirigami 0015 0016 import org.kde.ksysguard.sensors as Sensors 0017 import org.kde.ksysguard.faces as Faces 0018 0019 import org.kde.quickcharts as Charts 0020 import org.kde.quickcharts.controls as ChartControls 0021 0022 Faces.SensorFace { 0023 id: root 0024 contentItem: ColumnLayout { 0025 PieChart { 0026 Layout.maximumHeight: Math.max(root.width, Layout.minimumHeight) 0027 Layout.fillWidth: true 0028 Layout.fillHeight: true 0029 Layout.alignment: Qt.AlignCenter 0030 updateRateLimit: root.controller.updateRateLimit 0031 } 0032 QQC2.Label { 0033 id: label 0034 visible: root.formFactor == Faces.SensorFace.Planar && root.controller.showTitle && text.length > 0 0035 Layout.alignment: Qt.AlignTop 0036 Layout.fillWidth: true 0037 horizontalAlignment: Text.AlignHCenter 0038 text: root.controller.title 0039 } 0040 } 0041 }