Skip to content

Commit

Permalink
Change look of current clip indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
masc4ii committed Mar 25, 2020
1 parent 369c5c5 commit 33eaccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/qt/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3013,7 +3013,7 @@ void MainWindow::addFileToSession(QString fileName)
sliders->setFileName( fileName );
m_pSessionReceipts.append( sliders );
//Remove color unloaded clip
if( m_lastActiveClipInSession < ui->listWidgetSession->count() ) ui->listWidgetSession->item( m_lastActiveClipInSession )->setBackgroundColor( QColor( 0, 0, 0, 0 ) );
if( m_lastActiveClipInSession < ui->listWidgetSession->count() ) ui->listWidgetSession->item( m_lastActiveClipInSession )->setForeground( Qt::white );
//Save index of active clip
m_lastActiveClipInSession = ui->listWidgetSession->row( item );
//Set this row to current row
Expand Down Expand Up @@ -4591,13 +4591,13 @@ int MainWindow::showFileInEditor(int row)
setSliders( m_pSessionReceipts.at( row ), false );

//Remove color unloaded clip
ui->listWidgetSession->item( m_lastActiveClipInSession )->setBackgroundColor( QColor( 0, 0, 0, 0 ) );
ui->listWidgetSession->item( m_lastActiveClipInSession )->setForeground( Qt::white );

//Save new position in session
m_lastActiveClipInSession = row;

//Set color loaded clip
ui->listWidgetSession->item( m_lastActiveClipInSession )->setBackgroundColor( QColor( 255, 200, 0, 128 ) );
ui->listWidgetSession->item( m_lastActiveClipInSession )->setForeground( QColor( 255, 154, 50 ) );

//Caching is in which state? Set it!
if( ui->actionCaching->isChecked() ) on_actionCaching_triggered();
Expand Down

0 comments on commit 33eaccd

Please sign in to comment.