[vlmc-devel] Clip.qml: Wrap text within Clip

Yikai Lu git at videolan.org
Mon Jul 18 15:39:56 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Jul 18 17:20:25 2016 +0900| [1a2e5df80025de328c95193632bcb1cb38b6f228] | committer: Yikai Lu

Clip.qml: Wrap text within Clip

> https://code.videolan.org/videolan/vlmc/commit/1a2e5df80025de328c95193632bcb1cb38b6f228
---

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

diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index aac8a7e..73e4c35 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -95,9 +95,12 @@ Rectangle {
         id: text
         color: "white"
         width: parent.width - 4
+        height: trackHeight
         x: 4
         y: 4 - font.pointSize / 2
         font.pointSize: trackHeight / 4
+        elide: Text.ElideRight
+        wrapMode: Text.Wrap
     }
 
     Drag.keys: ["Clip"]



More information about the Vlmc-devel mailing list