Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Phone Components
Commits
1c708ff7
Commit
1c708ff7
authored
Jun 21, 2015
by
Marco Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working taskmanager on X11
assuming a wayland port of libtaskmanager arrives, that should work
parent
03710222
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
containments/taskpanel/package/contents/ui/TaskSwitcher.qml
containments/taskpanel/package/contents/ui/TaskSwitcher.qml
+28
-3
No files found.
containments/taskpanel/package/contents/ui/TaskSwitcher.qml
View file @
1c708ff7
...
...
@@ -24,6 +24,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import
org
.
kde
.
plasma
.
components
2.0
as
PlasmaComponents
import
org
.
kde
.
plasma
.
mobilecomponents
0.2
import
org
.
kde
.
plasma
.
private
.
taskmanager
0.1
as
TaskManager
FullScreenPanel
{
id
:
window
...
...
@@ -45,6 +47,17 @@ FullScreenPanel {
scrollAnim
.
running
=
true
;
}
TaskManager.Backend
{
id
:
backend
highlightWindows
:
false
//NoGrouping
groupingStrategy
:
0
//AlphaSorting
sortingStrategy
:
2
}
SequentialAnimation
{
id
:
scrollAnim
property
alias
to
:
internalAnim
.
to
...
...
@@ -102,7 +115,7 @@ FullScreenPanel {
}
}
model
:
10
model
:
backend
.
tasksModel
header
:
Item
{
width
:
window
.
width
height
:
window
.
height
...
...
@@ -117,16 +130,28 @@ FullScreenPanel {
}
radius
:
units
.
gridUnit
opacity
:
0.8
PlasmaCore.IconItem
{
anchors.centerIn
:
parent
width
:
Math
.
min
(
parent
.
width
,
parent
.
height
)
source
:
model
.
DecorationRole
}
PlasmaComponents.Label
{
anchors
{
bottom
:
parent
.
bottom
horizontalCenter
:
parent
.
horizontalCenter
left
:
parent
.
left
right
:
parent
.
right
}
text
:
"
Task
"
+
modelData
horizontalAlignment
:
Text
.
AlignHCenter
elide
:
Text
.
ElideRight
text
:
model
.
DisplayRole
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
window
.
hide
();
onClicked
:
{
window
.
hide
();
backend
.
activateItem
(
model
.
Id
,
true
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment