Commit 5b009a7e authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Removed old code, using a non-default text for the undo stack

parent da985fe5
......@@ -166,7 +166,9 @@ void MainWindow::initializeDockWidgets( void )
QDockWidget::AllDockWidgetFeatures,
Qt::TopDockWidgetArea );
dockManager->addDockedWidget( new QUndoView( UndoStack::getInstance(), this),
QUndoView* undoView = new QUndoView( UndoStack::getInstance(), this);
undoView->setEmptyLabel( tr( "Nothing to undo" ) );
dockManager->addDockedWidget( undoView,
tr( "History" ),
Qt::AllDockWidgetAreas,
QDockWidget::AllDockWidgetFeatures,
......
......@@ -364,10 +364,6 @@ void TracksView::mouseReleaseEvent( QMouseEvent* event )
updateDuration();
if ( m_layout->itemAt( 0 )->graphicsItem()->childItems().count() > 0 )
addVideoTrack();
// emit clipMoved( movieItem->clip()->getUuid(),
// movieItem->oldTrackNumber,
// movieItem->trackNumber(),
// (qint64)movieItem->pos().x() );
Commands::trigger( new Commands::MainWorkflow::MoveClip( m_mainWorkflow, movieItem->clip()->getUuid(),
movieItem->oldTrackNumber, movieItem->trackNumber(),
(qint64)movieItem->pos().x() ) );
......
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