[vlmc-devel] PropertyButton: emit pressed() when its MouseArea is pressed

Yikai Lu git at videolan.org
Fri Aug 12 16:52:33 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug  8 19:38:39 2016 -0500| [3c4eacbadce4084d2df7606d9ea9315c52300c91] | committer: Yikai Lu

PropertyButton: emit pressed() when its MouseArea is pressed

> https://code.videolan.org/videolan/vlmc/commit/3c4eacbadce4084d2df7606d9ea9315c52300c91
---

 src/Gui/timeline/PropertyButton.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Gui/timeline/PropertyButton.qml b/src/Gui/timeline/PropertyButton.qml
index d7fd85e..afda685 100644
--- a/src/Gui/timeline/PropertyButton.qml
+++ b/src/Gui/timeline/PropertyButton.qml
@@ -9,6 +9,8 @@ Rectangle {
     property alias text: _text.text
     property bool selected: false
 
+    signal pressed()
+
     Text {
         id: _text
         color: "#EEEEEE"
@@ -22,6 +24,7 @@ Rectangle {
 
         onPressed: {
             selected = !selected;
+            parent.pressed();
         }
     }
 }



More information about the Vlmc-devel mailing list