[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: hovered wo
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-02-14 13:18:01
Message-ID: 20120214131801.8DFFBA60B9 () git ! kde ! org
[Download RAW message or body]
Git commit a68c3df7a82ed6bb76076ca56c897054542d2561 by Shaun Reich.
Committed on 14/02/2012 at 05:13.
Pushed by sreich into branch 'plasma/sreich/tasks-qml'.
hovered works beautifully now (changes tasks bg)
M +28 -30 plasma/desktop/applets/tasks/package/contents/ui/main.qml
http://commits.kde.org/kde-workspace/a68c3df7a82ed6bb76076ca56c897054542d2561
diff --git a/plasma/desktop/applets/tasks/package/contents/ui/main.qml \
b/plasma/desktop/applets/tasks/package/contents/ui/main.qml index 3ebb968..d4adfd5 \
100644
--- a/plasma/desktop/applets/tasks/package/contents/ui/main.qml
+++ b/plasma/desktop/applets/tasks/package/contents/ui/main.qml
@@ -59,36 +59,7 @@ Item {
//
//
- // property bool hovered: false
- // property ContextMenu contextMenu
- // MouseArea {
- // id: mouseArea
- // anchors.fill: parent
- // hoverEnabled: true
- //
- //
- //
- // onClicked: {
- // for (i in model) {
- // print(i+" "+model[i])
- // }
- // // if (!contextMenu) {
- // if (mouse.button == Qt.RightButton) {
- // contextMenu = \
contextMenuComponent.createObject(wrapper)
- // contextMenu.open()
- // }
- //
- // // }
- // }
- //
- // onEntered: {
- // hovered = true;
- // }
- //
- // onExited: {
- // hovered = false;
- // }
- // }
+
// }
Flow {
@@ -140,6 +111,33 @@ Item {
}
]
+ property bool hovered: false
+ property ContextMenu contextMenu
+ MouseArea {
+ id: mouseArea
+ anchors.fill: parent
+ hoverEnabled: true
+
+ onClicked: {
+ for (i in model) {
+ print(i+" "+model[i])
+ }
+ // if (!contextMenu) {
+ if (mouse.button == Qt.RightButton) {
+ contextMenu = contextMenuComponent.createObject(wrapper)
+ contextMenu.open()
+ }
+ }
+
+ onEntered: {
+ hovered = true;
+ }
+
+ onExited: {
+ hovered = false;
+ }
+ }
+
PlasmaCore.FrameSvgItem {
id: taskBackground
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic