Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/TaskProgressOverlay.qml
Show All 37 Lines | 29 | Item { | |||
---|---|---|---|---|---|
38 | clip: true | 38 | clip: true | ||
39 | 39 | | |||
40 | PlasmaCore.FrameSvgItem { | 40 | PlasmaCore.FrameSvgItem { | ||
41 | id: progressFrame | 41 | id: progressFrame | ||
42 | width: background.width | 42 | width: background.width | ||
43 | height: background.height | 43 | height: background.height | ||
44 | 44 | | |||
45 | imagePath: "widgets/tasks" | 45 | imagePath: "widgets/tasks" | ||
46 | prefix: calculatePrefix() | 46 | prefix: TaskTools.taskPrefix("progress").concat(TaskTools.taskPrefix("hover")) | ||
broulik: You don't take into account orientation here (south/north/west/...) which `TaskTools. | |||||
Now you place an array inside of an array. (btw knotifications has a unitylauncher test app where you can test this, e.g. ~/Projects/kf5-build/knotifications/tests/unitylaunchertest org.kde.dolphin --progress 50) broulik: Now you place an array inside of an array.
(btw knotifications has a unitylauncher test app… | |||||
47 | onRepaintNeeded: prefix = calculatePrefix() | | |||
48 | | ||||
49 | function calculatePrefix() { | | |||
50 | var prefix = TaskTools.taskPrefix("progress") | | |||
51 | if (!frame.hasElementPrefix(prefix)) { | | |||
52 | prefix = TaskTools.taskPrefix("hover") | | |||
53 | } | | |||
54 | return prefix | | |||
55 | } | | |||
56 | } | 47 | } | ||
57 | } | 48 | } | ||
58 | } | 49 | } |
You don't take into account orientation here (south/north/west/...) which TaskTools.taskPrefix does