[vlmc-devel] Clip.qml: Always show Text with a fixed height

Yikai Lu git at videolan.org
Tue Aug 16 03:37:07 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Aug 15 20:25:19 2016 -0500| [e03b9273dc18bfef7874f5a7ae2384506e6dcca3] | committer: Yikai Lu

Clip.qml: Always show Text with a fixed height

> https://code.videolan.org/videolan/vlmc/commit/e03b9273dc18bfef7874f5a7ae2384506e6dcca3
---

 src/Gui/timeline/Clip.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index 5364198..c0ec19e 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -211,10 +211,10 @@ Rectangle {
         id: text
         color: "white"
         width: parent.width - 4
-        height: trackHeight
+        height: font.pointSize + 4
         x: 4
         y: 4 - font.pointSize / 2
-        font.pointSize: trackHeight / 4
+        font.pointSize: 7
         elide: Text.ElideRight
         wrapMode: Text.Wrap
     }



More information about the Vlmc-devel mailing list