[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [pairs/new_qml2] src/qml: remove debugging states
From: Aleix Pol <aleixpol () kde ! org>
Date: 2011-12-01 0:13:04
Message-ID: 20111201001304.116B3A60B9 () git ! kde ! org
[Download RAW message or body]
Git commit 74821245d073297d0a1fccfc8848eac8a6440733 by Aleix Pol.
Committed on 01/12/2011 at 01:12.
Pushed by apol into branch 'new_qml2'.
remove debugging states
M +2 -10 src/qml/Button.qml
M +1 -0 src/qml/Main.qml
http://commits.kde.org/pairs/74821245d073297d0a1fccfc8848eac8a6440733
diff --git a/src/qml/Button.qml b/src/qml/Button.qml
index 31ce7b5..d9bc095 100644
--- a/src/qml/Button.qml
+++ b/src/qml/Button.qml
@@ -36,7 +36,7 @@ Rectangle{
id: mouse
anchors.fill: parent
hoverEnabled: true
- onClicked: { button.clicked(); button.state="clicked"; }
+ onClicked: button.clicked()
onEntered: button.state="hovered"
onExited: button.state="default"
}
@@ -52,7 +52,7 @@ Rectangle{
MouseArea {
anchors.fill: parent
- onClicked: { button.overlayClicked(); button.state="ovcli"; }
+ onClicked: button.overlayClicked()
}
}
@@ -64,14 +64,6 @@ Rectangle{
State {
name: "hovered"
PropertyChanges { target: caption; color: "red" }
- },
- State {
- name: "clicked"
- PropertyChanges { target: caption; color: "green" }
- },
- State {
- name: "ovcli"
- PropertyChanges { target: caption; color: "white" }
}
]
}
diff --git a/src/qml/Main.qml b/src/qml/Main.qml
index 82e2cee..dba12d4 100644
--- a/src/qml/Main.qml
+++ b/src/qml/Main.qml
@@ -122,6 +122,7 @@ Rectangle
enabled: selected
onClicked: playersModel.toggleSelection(index)
+ onOverlayClicked: playersModel.removePlayer(index)
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic