X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fclip_list.cpp;h=0bb73ae404e367bc8c52d106928a4e435749c044;hb=e64a84bb856263242278afa9770ae5d05e21b055;hp=c586b1a93dcd719db43e79221a24324d1fd74533;hpb=b3a7a9eddd8b800f1b921332e8fdacb72e0d9b20;p=nageru diff --git a/futatabi/clip_list.cpp b/futatabi/clip_list.cpp index c586b1a..0bb73ae 100644 --- a/futatabi/clip_list.cpp +++ b/futatabi/clip_list.cpp @@ -433,25 +433,6 @@ void ClipList::change_num_cameras(size_t num_cameras) emit any_content_changed(); } -void PlayList::set_currently_playing(int index, double progress) -{ - int old_index = currently_playing_index; - int column = int(Column::PLAYING); - if (index != old_index) { - currently_playing_index = index; - play_progress = progress; - if (old_index != -1) { - emit dataChanged(this->index(old_index, column), this->index(old_index, column)); - } - if (index != -1) { - emit dataChanged(this->index(index, column), this->index(index, column)); - } - } else if (index != -1 && fabs(progress - play_progress) > 1e-3) { - play_progress = progress; - emit dataChanged(this->index(index, column), this->index(index, column)); - } -} - void PlayList::set_progress(const map &progress) { const int column = int(Column::PLAYING);