Changeset View
Changeset View
Standalone View
Standalone View
src/timeline2/model/timelineitemmodel.hpp
Context not available. | |||||
34 | Here the order of these sub-rows is unrelated to the chronological order of the clips, | 34 | Here the order of these sub-rows is unrelated to the chronological order of the clips, | ||
---|---|---|---|---|---|
35 | but correspond to their Id order. For example, if you have three clips, with ids 12, 45 and 150, they will receive row index 0,1 and 2. | 35 | but correspond to their Id order. For example, if you have three clips, with ids 12, 45 and 150, they will receive row index 0,1 and 2. | ||
36 | This is because the order actually doesn't matter since the clips are rendered based on their positions rather than their row order. | 36 | This is because the order actually doesn't matter since the clips are rendered based on their positions rather than their row order. | ||
37 | The id order has been choosed because it is consistant with a valid ordering of the clips. | 37 | The id order has been chosen because it is consistent with a valid ordering of the clips. | ||
38 | The columns are never used, so the data is always in column 0 | 38 | The columns are never used, so the data is always in column 0 | ||
39 | 39 | | |||
40 | An ModelIndex in the ItemModel consists of a row number, a column number, and a parent index. In our case, tracks have always an empty parent, and the clip | 40 | An ModelIndex in the ItemModel consists of a row number, a column number, and a parent index. In our case, tracks have always an empty parent, and the clip | ||
Context not available. | |||||
110 | virtual void _resetView() override; | 110 | virtual void _resetView() override; | ||
111 | 111 | | |||
112 | protected: | 112 | protected: | ||
113 | // This is an helper function that finishes a constuction of a freshly created TimelineItemModel | 113 | // This is an helper function that finishes a construction of a freshly created TimelineItemModel | ||
114 | static void finishConstruct(std::shared_ptr<TimelineItemModel> ptr, std::shared_ptr<MarkerListModel> guideModel); | 114 | static void finishConstruct(std::shared_ptr<TimelineItemModel> ptr, std::shared_ptr<MarkerListModel> guideModel); | ||
115 | }; | 115 | }; | ||
116 | #endif | 116 | #endif | ||
Context not available. |