[vlmc-devel] PropertyButton: Fix binding loop
Hugo Beauzée-Luyssen
git at videolan.org
Sun Oct 30 22:36:47 CET 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Oct 30 22:12:27 2016 +0100| [33b924733d356a707245b32183542bc5acdb7874] | committer: Hugo Beauzée-Luyssen
PropertyButton: Fix binding loop
> https://code.videolan.org/videolan/vlmc/commit/33b924733d356a707245b32183542bc5acdb7874
---
src/Gui/timeline/PropertyButton.qml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Gui/timeline/PropertyButton.qml b/src/Gui/timeline/PropertyButton.qml
index 646bc25..9c0cea6 100644
--- a/src/Gui/timeline/PropertyButton.qml
+++ b/src/Gui/timeline/PropertyButton.qml
@@ -5,6 +5,7 @@ Rectangle {
height: 20
color: mouseArea.containsMouse ? "#44FFFFFF" : selected ? "#AA000000" : "transparent"
radius: 2
+ id: propertyButton
property alias text: _text.text
property bool selected: false
@@ -14,7 +15,7 @@ Rectangle {
Text {
id: _text
color: "#EEEEEE"
- font.pixelSize: width / 2
+ font.pixelSize: propertyButton.width / 2
anchors.centerIn: parent
}
More information about the Vlmc-devel
mailing list