Changeset View
Changeset View
Standalone View
Standalone View
src/timeline2/model/trackmodel.cpp
Context not available. | |||||
333 | } | 333 | } | ||
---|---|---|---|---|---|
334 | auto old_clip = m_allClips[clipId]; | 334 | auto old_clip = m_allClips[clipId]; | ||
335 | int old_position = old_clip->getPosition(); | 335 | int old_position = old_clip->getPosition(); | ||
336 | qDebug() << "/// REQUESTOING CLIP DELETION_: " << updateView; | | |||
337 | auto operation = requestClipDeletion_lambda(clipId, updateView, finalMove); | 336 | auto operation = requestClipDeletion_lambda(clipId, updateView, finalMove); | ||
338 | if (operation()) { | 337 | if (operation()) { | ||
339 | if (updateView) { | 338 | if (updateView) { | ||
Context not available. | |||||
381 | other_index = m_playlists[other_track].get_clip_index_at(last_pos); | 380 | other_index = m_playlists[other_track].get_clip_index_at(last_pos); | ||
382 | index--; | 381 | index--; | ||
383 | } | 382 | } | ||
384 | if (index < 0) return 0; | 383 | if (index < 0) { | ||
384 | return 0; | ||||
385 | } | ||||
385 | int length = INT_MAX; | 386 | int length = INT_MAX; | ||
386 | if (index < m_playlists[track].count()) { | 387 | if (index < m_playlists[track].count()) { | ||
387 | if (!m_playlists[track].is_blank(index)) { | 388 | if (!m_playlists[track].is_blank(index)) { | ||
Context not available. | |||||
974 | if (row < (int)m_allClips.size()) { | 975 | if (row < (int)m_allClips.size()) { | ||
975 | return -1; | 976 | return -1; | ||
976 | } | 977 | } | ||
977 | // Q_ASSERT(row <= (int)m_allClips.size() + m_allCompositions.size()); | 978 | Q_ASSERT(row < (int)m_allClips.size() + m_allCompositions.size()); | ||
978 | auto it = m_allCompositions.cbegin(); | 979 | auto it = m_allCompositions.cbegin(); | ||
979 | std::advance(it, row - (int)m_allClips.size()); | 980 | std::advance(it, row - (int)m_allClips.size()); | ||
980 | return (*it).first; | 981 | return (*it).first; | ||
Context not available. |