[vlmc-devel] commit: TracksControl: Don't hardcode height ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Fri Sep 17 00:38:53 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Sep 16 21:20:28 2010 +0200| [c55cdf9d30a513907c3716556c21a9fe6b4f9408] | committer: Hugo Beauzée-Luyssen 

TracksControl: Don't hardcode height

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c55cdf9d30a513907c3716556c21a9fe6b4f9408
---

 src/Gui/timeline/TracksControls.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Gui/timeline/TracksControls.cpp b/src/Gui/timeline/TracksControls.cpp
index 2c93a4d..c4c84db 100644
--- a/src/Gui/timeline/TracksControls.cpp
+++ b/src/Gui/timeline/TracksControls.cpp
@@ -23,6 +23,8 @@
 #include <QLabel>
 #include "TracksControls.h"
 
+#include "GraphicsTrack.h"
+
 TracksControls::TracksControls( QWidget* parent )
         : QScrollArea( parent )
 {
@@ -55,7 +57,7 @@ void TracksControls::addVideoTrack( GraphicsTrack* track )
 {
     TrackControls* item = new TrackControls( track, m_centralWidget );
     item->setMinimumWidth( 108 );
-    item->setMinimumHeight( 25 );
+    item->setMinimumHeight( track->height() );
     item->setContentsMargins( 0, 0, 0, 0 );
     m_layout->insertWidget( 0, item );
 }
@@ -64,7 +66,7 @@ void TracksControls::addAudioTrack( GraphicsTrack* track )
 {
     TrackControls* item = new TrackControls( track, m_centralWidget );
     item->setMinimumWidth( 108 );
-    item->setMinimumHeight( 25 );
+    item->setMinimumHeight( track->height() );
     item->setContentsMargins( 0, 0, 0, 0 );
     m_layout->insertWidget( -1, item );
 }



More information about the Vlmc-devel mailing list