[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace/plasma/sreich/tasks-qml] plasma/desktop/applets/tasks/package/contents/ui: add contex
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-02-14 13:18:01
Message-ID: 20120214131801.96251A60C6 () git ! kde ! org
[Download RAW message or body]
Git commit 9dd2b57f074263e0f53dce08b405747cfbae4f9c by Shaun Reich.
Committed on 14/02/2012 at 05:27.
Pushed by sreich into branch 'plasma/sreich/tasks-qml'.
add context menu items, they're just bogus though for now
M +37 -24 plasma/desktop/applets/tasks/package/contents/ui/main.qml
http://commits.kde.org/kde-workspace/9dd2b57f074263e0f53dce08b405747cfbae4f9c
diff --git a/plasma/desktop/applets/tasks/package/contents/ui/main.qml \
b/plasma/desktop/applets/tasks/package/contents/ui/main.qml index 16698cb..fe53451 \
100644
--- a/plasma/desktop/applets/tasks/package/contents/ui/main.qml
+++ b/plasma/desktop/applets/tasks/package/contents/ui/main.qml
@@ -63,6 +63,7 @@ Item {
// }
Flow {
+ id: flower
anchors.fill: parent
move: Transition {
@@ -73,6 +74,7 @@ Item {
}
Repeater {
+ id: repeater
model: tasksModel
Item {
@@ -126,7 +128,7 @@ Item {
// if (!contextMenu) {
if (mouse.button == Qt.RightButton) {
- contextMenu = contextMenuComponent.createObject(wrapper)
+ contextMenu = \
contextMenuComponent.createObject(taskBackground) contextMenu.open()
}
}
@@ -184,33 +186,44 @@ Item {
clip: true
text: model.DisplayRole
}
- }
- }
- }
- Component {
- id: contextMenuComponent
- PlasmaComponents.ContextMenu {
- PlasmaComponents.MenuItem {
- text: "White"
- // onClicked: {
- //contentMenuButton.parent.color = "White"
- // }
- }
- PlasmaComponents.MenuItem {
- text: "Red"
- // onClicked: contentMenuButton.parent.color = "Red"
- }
- PlasmaComponents.MenuItem {
- text: "LightBlue"
- // onClicked: contentMenuButton.parent.color = "LightBlue"
- }
- PlasmaComponents.MenuItem {
- text: "LightGreen"
- // onClicked: contentMenuButton.parent.color = "LightGreen"
+ Component {
+ id: contextMenuComponent
+ PlasmaComponents.ContextMenu {
+ PlasmaComponents.MenuItem {
+// text: model.DisplayRole
+ text: "Close"
+ // onClicked: {
+ //contentMenuButton.parent.color = "White"
+ // }
+ }
+ PlasmaComponents.MenuItem {
+ text: "Task Manager Settings"
+ // onClicked: contentMenuButton.parent.color = "Red"
+ }
+ PlasmaComponents.MenuItem {
+ text: "Show A Launcher When Not Running"
+ // onClicked: contentMenuButton.parent.color = "LightBlue"
+ }
+ PlasmaComponents.MenuItem {
+ text: "Start New Instance"
+ // onClicked: contentMenuButton.parent.color = "LightGreen"
+ }
+ PlasmaComponents.MenuItem {
+ text: "Minimize"
+ // onClicked: contentMenuButton.parent.color = "LightGreen"
+ }
+ PlasmaComponents.MenuItem {
+ text: "Maximize"
+ // onClicked: contentMenuButton.parent.color = "LightGreen"
+ }
+ }
+ }
}
}
}
+
+
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic