Commit 3c93b415 authored by Ludovic Fauvet's avatar Ludovic Fauvet

timeline: code cleanup

parent 1d337029
......@@ -49,8 +49,6 @@ TracksView::TracksView( QGraphicsScene *scene, MainWorkflow *mainWorkflow,
//TODO should be defined by the settings
m_tracksHeight = 25;
m_tracksCount = mainWorkflow->getTrackCount( MainWorkflow::VideoTrack );
m_numAudioTrack = 0;
m_numVideoTrack = 0;
m_dragVideoItem = NULL;
......@@ -638,16 +636,10 @@ TracksView::dragLeaveEvent( QDragLeaveEvent *event )
if ( m_dragAudioItem || m_dragVideoItem )
updateDurationNeeded = true;
if ( m_dragAudioItem )
{
delete m_dragAudioItem;
m_dragAudioItem = NULL;
}
if ( m_dragVideoItem )
{
delete m_dragVideoItem;
m_dragVideoItem = NULL;
}
delete m_dragAudioItem;
delete m_dragVideoItem;
m_dragAudioItem = NULL;
m_dragVideoItem = NULL;
if ( updateDurationNeeded )
updateDuration();
......
......@@ -109,12 +109,6 @@ public:
* \return The size in pixels.
*/
int tracksHeight() const { return m_tracksHeight; }
/**
* \brief Get the number of tracks.
* \warning This method only returns tracks of type VideoTrack!
* \return The number of tracks.
*/
unsigned int tracksCount() const { return m_tracksCount; }
/**
* \brief Change the position of the cursor.
* \param pos The position where to move the cursor, in frames.
......@@ -311,7 +305,6 @@ private:
GraphicsTrack *getTrack( MainWorkflow::TrackType type, unsigned int number );
QGraphicsScene *m_scene;
int m_tracksHeight;
unsigned int m_tracksCount;
int m_projectDuration;
GraphicsCursorItem *m_cursorLine;
QGraphicsLinearLayout *m_layout;
......
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