Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/Task.qml
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Line(s) | 350 | toolTipDelegate.virtualDesktopParent = Qt.binding(function() { | |||
---|---|---|---|---|---|
351 | return model.VirtualDesktop != undefined ? model.VirtualDesktop : 0; | 351 | return model.VirtualDesktop != undefined ? model.VirtualDesktop : 0; | ||
352 | }); | 352 | }); | ||
353 | toolTipDelegate.isOnAllVirtualDesktopsParent = Qt.binding(function() { | 353 | toolTipDelegate.isOnAllVirtualDesktopsParent = Qt.binding(function() { | ||
354 | return model.IsOnAllVirtualDesktops == true; | 354 | return model.IsOnAllVirtualDesktops == true; | ||
355 | }); | 355 | }); | ||
356 | toolTipDelegate.activitiesParent = Qt.binding(function() { | 356 | toolTipDelegate.activitiesParent = Qt.binding(function() { | ||
357 | return model.Activities; | 357 | return model.Activities; | ||
358 | }); | 358 | }); | ||
359 | | ||||
360 | toolTipDelegate.smartLauncherCountVisible = Qt.binding(function() { | ||||
361 | return plasmoid.configuration.smartLaunchersEnabled && task.smartLauncherItem && task.smartLauncherItem.countVisible; | ||||
362 | }); | ||||
363 | toolTipDelegate.smartLauncherCount = Qt.binding(function() { | ||||
364 | return toolTipDelegate.smartLauncherCountVisible ? task.smartLauncherItem.count : 0; | ||||
365 | }); | ||||
359 | } | 366 | } | ||
360 | } | 367 | } | ||
361 | } | 368 | } | ||
362 | } | 369 | } | ||
363 | 370 | | |||
364 | Loader { | 371 | Loader { | ||
365 | anchors.fill: frame | 372 | anchors.fill: frame | ||
366 | asynchronous: true | 373 | asynchronous: true | ||
Show All 39 Lines | 408 | PlasmaCore.IconItem { | |||
406 | active: task.highlighted | 413 | active: task.highlighted | ||
407 | enabled: true | 414 | enabled: true | ||
408 | usesPlasmaTheme: false | 415 | usesPlasmaTheme: false | ||
409 | 416 | | |||
410 | source: model.decoration | 417 | source: model.decoration | ||
411 | } | 418 | } | ||
412 | 419 | | |||
413 | Loader { | 420 | Loader { | ||
421 | id: taskBadgeLoader | ||||
414 | // QTBUG anchors.fill in conjunction with the Loader doesn't reliably work on creation: | 422 | // QTBUG anchors.fill in conjunction with the Loader doesn't reliably work on creation: | ||
415 | // have a window with a badge, move it from one screen to another, the new task item on the | 423 | // have a window with a badge, move it from one screen to another, the new task item on the | ||
416 | // other screen will now have a glitched out badge mask. | 424 | // other screen will now have a glitched out badge mask. | ||
417 | width: parent.width | 425 | width: parent.width | ||
418 | height: parent.height | 426 | height: parent.height | ||
419 | asynchronous: true | 427 | asynchronous: true | ||
420 | source: "TaskBadgeOverlay.qml" | 428 | source: "TaskBadgeOverlay.qml" | ||
421 | active: plasmoid.configuration.smartLaunchersEnabled && height >= units.iconSizes.small | 429 | active: plasmoid.configuration.smartLaunchersEnabled && height >= units.iconSizes.small | ||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |