Changeset View
Changeset View
Standalone View
Standalone View
applets/systemmonitor/systemmonitor/package/contents/ui/main.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2019 Marco Martin <mart@kde.org> | ||||
3 | * Copyright 2019 David Edmundson <davidedmundson@kde.org> | ||||
4 | * Copyright 2019 Arjen Hiemstra <ahiemstra@heimr.nl> | ||||
5 | * | ||||
6 | * This program is free software; you can redistribute it and/or modify | ||||
7 | * it under the terms of the GNU Library General Public License as | ||||
8 | * published by the Free Software Foundation; either version 2, or | ||||
9 | * (at your option) any later version. | ||||
10 | * | ||||
11 | * This program is distributed in the hope that it will be useful, | ||||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
14 | * GNU General Public License for more details | ||||
15 | * | ||||
16 | * You should have received a copy of the GNU Library General Public | ||||
17 | * License along with this program; if not, write to the | ||||
18 | * Free Software Foundation, Inc., | ||||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
20 | */ | ||||
21 | | ||||
22 | import QtQuick 2.0 | ||||
23 | import QtQuick.Layouts 1.1 | ||||
24 | import QtQuick.Window 2.12 | ||||
25 | | ||||
26 | import org.kde.plasma.core 2.0 as PlasmaCore | ||||
27 | import org.kde.plasma.plasmoid 2.0 | ||||
28 | | ||||
29 | import org.kde.ksysguard.sensors 1.0 as Sensors | ||||
30 | import org.kde.ksysguard.faces 1.0 as Faces | ||||
31 | | ||||
32 | import org.kde.quickcharts 1.0 as Charts | ||||
33 | | ||||
34 | Item { | ||||
35 | Plasmoid.backgroundHints: PlasmaCore.Types.DefaultBackground | PlasmaCore.Types.ConfigurableBackground | ||||
36 | | ||||
37 | Plasmoid.switchWidth: Plasmoid.fullRepresentationItem ? Plasmoid.fullRepresentationItem.Layout.minimumWidth : units.gridUnit * 8 | ||||
38 | Plasmoid.switchHeight: Plasmoid.fullRepresentationItem ? Plasmoid.fullRepresentationItem.Layout.minimumHeight : units.gridUnit * 12 | ||||
39 | | ||||
40 | Plasmoid.title: plasmoid.nativeInterface.faceController.title || i18n("System Monitor") | ||||
41 | Plasmoid.toolTipSubText: "" | ||||
42 | | ||||
43 | Plasmoid.compactRepresentation: CompactRepresentation { | ||||
44 | } | ||||
45 | Plasmoid.fullRepresentation: FullRepresentation { | ||||
46 | } | ||||
47 | | ||||
48 | Plasmoid.configurationRequired: plasmoid.nativeInterface.faceController.highPrioritySensorIds.length == 0 && plasmoid.nativeInterface.faceController.lowPrioritySensorIds.length == 0 && plasmoid.nativeInterface.faceController.totalSensor.length == 0 | ||||
49 | } |