[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: accept rig
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-14 13:18:01
Message-ID: 20120214131801.914ADA60BE () git ! kde ! org
[Download RAW message or body]

Git commit 813e9a77e0354b1dfafe8f63a4b1efc987b5eeab by Shaun Reich.
Committed on 14/02/2012 at 05:16.
Pushed by sreich into branch 'plasma/sreich/tasks-qml'.

accept right button for context menu

context menu now works. booyah

M  +5    -3    plasma/desktop/applets/tasks/package/contents/ui/main.qml

http://commits.kde.org/kde-workspace/813e9a77e0354b1dfafe8f63a4b1efc987b5eeab

diff --git a/plasma/desktop/applets/tasks/package/contents/ui/main.qml \
b/plasma/desktop/applets/tasks/package/contents/ui/main.qml index d4adfd5..16698cb \
                100644
--- a/plasma/desktop/applets/tasks/package/contents/ui/main.qml
+++ b/plasma/desktop/applets/tasks/package/contents/ui/main.qml
@@ -117,11 +117,13 @@ Item {
                     id: mouseArea
                     anchors.fill: parent
                     hoverEnabled: true
+                    acceptedButtons: Qt.RightButton
 
                     onClicked: {
-                        for (i in model) {
-                            print(i+" "+model[i])
-                        }
+ //                       for (i in model) {
+//                            print(i + " " + model[i])
+  //                      }
+
                         // if (!contextMenu) {
                         if (mouse.button == Qt.RightButton) {
                             contextMenu = contextMenuComponent.createObject(wrapper)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic