Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show All 27 Lines | |||||
28 | import org.kde.plasma.core 2.0 as PlasmaCore | 28 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
29 | import org.kde.plasma.components 2.0 as PlasmaComponents | 29 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
30 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 30 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
31 | import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons | 31 | import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons | ||
32 | 32 | | |||
33 | import org.kde.taskmanager 0.1 as TaskManager | 33 | import org.kde.taskmanager 0.1 as TaskManager | ||
34 | 34 | | |||
35 | Column { | 35 | Column { | ||
36 | property var submodelIndex: tasksModel.makeModelIndex(parentIndex, isGroup ? index : -1) | 36 | property var submodelIndex | ||
37 | property int flatIndex: isGroup && index != undefined ? index : 0 | 37 | property int flatIndex: isGroup && index != undefined ? index : 0 | ||
38 | 38 | | |||
39 | spacing: units.smallSpacing | 39 | spacing: units.smallSpacing | ||
40 | 40 | | |||
41 | property string mprisSourceName: mpris2Source.sourceNameForLauncherUrl(toolTipDelegate.launcherUrl, isGroup ? AppPid : pidParent) | 41 | property string mprisSourceName: mpris2Source.sourceNameForLauncherUrl(toolTipDelegate.launcherUrl, isGroup ? AppPid : pidParent) | ||
42 | property var playerData: mprisSourceName != "" ? mpris2Source.data[mprisSourceName] : 0 | 42 | property var playerData: mprisSourceName != "" ? mpris2Source.data[mprisSourceName] : 0 | ||
43 | property bool hasPlayer: !!mprisSourceName && !!playerData | 43 | property bool hasPlayer: !!mprisSourceName && !!playerData | ||
44 | property bool playing: hasPlayer && playerData.PlaybackStatus === "Playing" | 44 | property bool playing: hasPlayer && playerData.PlaybackStatus === "Playing" | ||
▲ Show 20 Lines • Show All 443 Lines • Show Last 20 Lines |