Home
Phabricator
Search
Log In
Paste
P446
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on Aug 2 2019, 9:51 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
commit f94aa3ca0fa383e6a1a14857c00cb67e111c3042
Author: David Edmundson <kde@davidedmundson.co.uk>
Date: Thu Aug 1 17:42:46 2019 +0100
use plain tables
diff --git a/ksysguardqml/components/ApplicationsTableView.qml b/ksysguardqml/components/ApplicationsTableView.qml
index 50ae99d2..04a86eea 100644
--- a/ksysguardqml/components/ApplicationsTableView.qml
+++ b/ksysguardqml/components/ApplicationsTableView.qml
@@ -48,6 +48,24 @@ SensorTableView {
}
}
+ KSGRD2.SensorDataModel {
+ id: dataModel2
+
+ sensors: ["app/name",
+ "app/usage",
+ "app/vmShared",
+ "app/iconName",
+ "app/name"]
+
+ Component.onCompleted: {
+ setCustomHeading("app/usage", "CPU");
+ setCustomHeading("app/vmShared", "Memory");
+
+ sortFilterProxy.sourceModel = dataModel2;
+ }
+ }
+
+
KSGRD2.SensorDataModel {
id: dataModel
@@ -56,53 +74,53 @@ SensorTableView {
"process/username",
"process/usage",
"process/vmShared",
- "app/iconName",
+// "app/iconName",
"process/command",
- "process/processGroup",
- "app/usage",
+ "process/processGroup"
+ /*"app/usage",
"app/vmShared",
- "app/name"]
+ "app/name"*/]
Component.onCompleted: {
setCustomHeading("process/username", "Username");
setCustomHeading("process/usage", "CPU");
setCustomHeading("process/vmShared", "Memory");
- fallbackProxy.sourceModel = dataModel;
+// sortFilterProxy.sourceModel = dataModel;
}
}
- KSGRD2.SensorFallbackProxyModel {
- id: fallbackProxy
-
- Component.onCompleted: {
- addFallback("process/name", "app/name");
- addFallback("process/usage", "app/usage");
- addFallback("process/vmShared", "app/vmShared");
-
- groupingProxy.sourceModel = fallbackProxy;
- }
- }
-
- KSGRD2.SensorGroupingProxyModel {
- id: groupingProxy
-
- sensorType: KSGRD2.SensorGroupingProxyModel.Entity
- groupingSensor: "process/processGroup"
-
- Component.onCompleted: {
- sortFilterProxy.sourceModel = groupingProxy;
- }
- }
+// KSGRD2.SensorFallbackProxyModel {
+// id: fallbackProxy
+//
+// Component.onCompleted: {
+// addFallback("process/name", "app/name");
+// addFallback("process/usage", "app/usage");
+// addFallback("process/vmShared", "app/vmShared");
+//
+// // groupingProxy.sourceModel = fallbackProxy;
+// }
+// }
+
+// KSGRD2.SensorGroupingProxyModel {
+// id: groupingProxy
+//
+// sensorType: KSGRD2.SensorGroupingProxyModel.Entity
+// groupingSensor: "process/processGroup"
+//
+// Component.onCompleted: {
+// // sortFilterProxy.sourceModel = groupingProxy;
+// }
+// }
KSGRD2.SensorSortFilterProxyModel {
id: sortFilterProxy
-
- groupsOnly: true
- hiddenSensors: ["process/processGroup",
- "app/usage",
- "app/vmShared",
- "app/name"]
+// //
+// groupsOnly: true
+// hiddenSensors: ["process/processGroup",
+// "app/usage",
+// "app/vmShared",
+// "app/name"]
Component.onCompleted: {
sort(view.sortColumn, view.sortOrder);
davidedmundson
edited the content of this paste.
(Show Details)
Aug 2 2019, 9:51 AM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment