Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
9491943a
Commit
9491943a
authored
Aug 14, 2009
by
Ludovic Fauvet
Browse files
Use of the timeline to access the tracksview
parent
1c2432ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/GraphicsMovieItem.cpp
View file @
9491943a
...
...
@@ -26,6 +26,7 @@
#include <QTime>
#include "GraphicsMovieItem.h"
#include "TracksView.h"
#include "Timeline.h"
GraphicsMovieItem
::
GraphicsMovieItem
(
Clip
*
clip
)
:
m_clip
(
clip
),
m_width
(
0
),
m_height
(
0
)
{
...
...
@@ -134,7 +135,7 @@ void GraphicsMovieItem::updateTitle()
QString
text
=
m_clip
->
getParent
()
->
getFileInfo
()
->
fileName
();
static
int
lastWidth
=
0
;
int
width
=
T
racksView
::
instance
()
->
mapFromScene
(
boundingRect
()
).
boundingRect
().
width
();
int
width
=
T
imeline
::
getInstance
()
->
tracksView
()
->
mapFromScene
(
boundingRect
()
).
boundingRect
().
width
();
if
(
lastWidth
==
width
)
return
;
lastWidth
=
width
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment