@@ -309,9 +309,11 @@ void Track::Retranslate()
|
||||
|
||||
void Track::SetIndex(const int &index)
|
||||
{
|
||||
int old = index_;
|
||||
|
||||
index_ = index;
|
||||
|
||||
emit IndexChanged(index);
|
||||
emit IndexChanged(old, index_);
|
||||
}
|
||||
|
||||
Block *Track::BlockContainingTime(const rational &time) const
|
||||
|
||||
@@ -388,7 +388,7 @@ signals:
|
||||
/**
|
||||
* @brief Signal emitted when the index has changed
|
||||
*/
|
||||
void IndexChanged(int i);
|
||||
void IndexChanged(int old, int now);
|
||||
|
||||
/**
|
||||
* @brief Signal emitted when preview (waveform) has changed and UI should be updated
|
||||
|
||||
Reference in New Issue
Block a user