Commit 92f72f70 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Remove dirty parameters

parent 48911bc9
......@@ -108,7 +108,5 @@ void Timeline::actionMoveClip( const QUuid& uuid, unsigned int track, qint64 tim
void Timeline::actionRemoveClip( const QUuid& uuid, unsigned int track )
{
// The signal was triggered by the backend, so we do not have to
// notify it again. I guess it would be a very bad idea.
tracksView()->removeMediaItem( uuid, track, false );
tracksView()->removeMediaItem( uuid, track );
}
......@@ -299,7 +299,7 @@ void TracksView::moveMediaItem( AbstractGraphicsMediaItem* item, int track, qint
}
}
void TracksView::removeMediaItem( const QUuid& uuid, unsigned int track, bool notifyBackend )
void TracksView::removeMediaItem( const QUuid& uuid, unsigned int track )
{
Q_UNUSED( track );
//TODO When a clever API will be done to manage the tracks, we could
......@@ -313,18 +313,18 @@ void TracksView::removeMediaItem( const QUuid& uuid, unsigned int track, bool no
AbstractGraphicsMediaItem* item =
dynamic_cast<AbstractGraphicsMediaItem*>( sceneItems.at( i ) );
if ( !item || item->uuid() != uuid ) continue;
removeMediaItem( item, notifyBackend );
removeMediaItem( item );
}
}
void TracksView::removeMediaItem( AbstractGraphicsMediaItem* item, bool notifyBackend )
void TracksView::removeMediaItem( AbstractGraphicsMediaItem* item )
{
QList<AbstractGraphicsMediaItem*> items;
items.append( item );
removeMediaItem( items, notifyBackend );
removeMediaItem( items );
}
void TracksView::removeMediaItem( const QList<AbstractGraphicsMediaItem*>& items, bool notifyBackend )
void TracksView::removeMediaItem( const QList<AbstractGraphicsMediaItem*>& items )
{
for ( int i = 0; i < items.size(); ++i )
{
......
......@@ -55,13 +55,13 @@ public:
GraphicsCursorItem* tracksCursor() const { return m_cursorLine; }
void setScale( double scaleFactor );
QList<AbstractGraphicsMediaItem*> mediaItems( const QPoint& pos );
void removeMediaItem( AbstractGraphicsMediaItem* item, bool notifyBackend = true );
void removeMediaItem( const QList<AbstractGraphicsMediaItem*>& items, bool notifyBackend = true );
void removeMediaItem( AbstractGraphicsMediaItem* item );
void removeMediaItem( const QList<AbstractGraphicsMediaItem*>& items );
public slots:
void addMediaItem( Clip* clip, unsigned int track, qint64 start );
void moveMediaItem( const QUuid& uuid, unsigned int track, qint64 time );
void removeMediaItem( const QUuid& uuid, unsigned int track, bool notifyBackend = true );
void removeMediaItem( const QUuid& uuid, unsigned int track );
protected:
virtual void resizeEvent( QResizeEvent* event );
......
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