Commit 9491943a authored by Ludovic Fauvet's avatar Ludovic Fauvet

Use of the timeline to access the tracksview

parent 1c2432ff
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <QTime> #include <QTime>
#include "GraphicsMovieItem.h" #include "GraphicsMovieItem.h"
#include "TracksView.h" #include "TracksView.h"
#include "Timeline.h"
GraphicsMovieItem::GraphicsMovieItem( Clip* clip ) : m_clip( clip ), m_width( 0 ), m_height( 0 ) GraphicsMovieItem::GraphicsMovieItem( Clip* clip ) : m_clip( clip ), m_width( 0 ), m_height( 0 )
{ {
...@@ -134,7 +135,7 @@ void GraphicsMovieItem::updateTitle() ...@@ -134,7 +135,7 @@ void GraphicsMovieItem::updateTitle()
QString text = m_clip->getParent()->getFileInfo()->fileName(); QString text = m_clip->getParent()->getFileInfo()->fileName();
static int lastWidth = 0; static int lastWidth = 0;
int width = TracksView::instance()->mapFromScene( boundingRect() ).boundingRect().width(); int width = Timeline::getInstance()->tracksView()->mapFromScene( boundingRect() ).boundingRect().width();
if ( lastWidth == width ) return; if ( lastWidth == width ) return;
lastWidth = width; lastWidth = width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment