Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/main.qml
Show All 33 Lines | 32 | MouseArea { | |||
---|---|---|---|---|---|
34 | 34 | | |||
35 | anchors.fill: parent | 35 | anchors.fill: parent | ||
36 | hoverEnabled: true | 36 | hoverEnabled: true | ||
37 | 37 | | |||
38 | property bool vertical: (plasmoid.formFactor === PlasmaCore.Types.Vertical) | 38 | property bool vertical: (plasmoid.formFactor === PlasmaCore.Types.Vertical) | ||
39 | property bool iconsOnly: (plasmoid.pluginName === "org.kde.plasma.icontasks") | 39 | property bool iconsOnly: (plasmoid.pluginName === "org.kde.plasma.icontasks") | ||
40 | 40 | | |||
41 | property QtObject contextMenuComponent: Qt.createComponent("ContextMenu.qml"); | 41 | property QtObject contextMenuComponent: Qt.createComponent("ContextMenu.qml"); | ||
42 | property QtObject pulseAudioComponent: Qt.createComponent("PulseAudio.qml"); | ||||
42 | 43 | | |||
43 | property bool needLayoutRefresh: false; | 44 | property bool needLayoutRefresh: false; | ||
44 | property variant taskClosedWithMouseMiddleButton: [] | 45 | property variant taskClosedWithMouseMiddleButton: [] | ||
45 | 46 | | |||
46 | readonly property bool plasmaPaAvailable: Qt.createComponent("PulseAudio.qml").status === Component.Ready | | |||
47 | | ||||
48 | Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation | 47 | Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation | ||
49 | 48 | | |||
50 | Plasmoid.onUserConfiguringChanged: { | 49 | Plasmoid.onUserConfiguringChanged: { | ||
51 | if (plasmoid.userConfiguring) { | 50 | if (plasmoid.userConfiguring) { | ||
52 | groupDialog.visible = false; | 51 | groupDialog.visible = false; | ||
53 | } | 52 | } | ||
54 | } | 53 | } | ||
55 | 54 | | |||
▲ Show 20 Lines • Show All 245 Lines • ▼ Show 20 Line(s) | 230 | PlasmaCore.DataSource { | |||
301 | } | 300 | } | ||
302 | function quit(source) { | 301 | function quit(source) { | ||
303 | startOperation(source, "Quit"); | 302 | startOperation(source, "Quit"); | ||
304 | } | 303 | } | ||
305 | } | 304 | } | ||
306 | 305 | | |||
307 | Loader { | 306 | Loader { | ||
308 | id: pulseAudio | 307 | id: pulseAudio | ||
309 | source: "PulseAudio.qml" | 308 | sourceComponent: pulseAudioComponent | ||
310 | active: plasmaPaAvailable | 309 | active: pulseAudioComponent.status === Component.Ready | ||
311 | } | 310 | } | ||
312 | 311 | | |||
313 | Timer { | 312 | Timer { | ||
314 | id: iconGeometryTimer | 313 | id: iconGeometryTimer | ||
315 | 314 | | |||
316 | interval: 500 | 315 | interval: 500 | ||
317 | repeat: false | 316 | repeat: false | ||
318 | 317 | | |||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |