完善测试

This commit is contained in:
2026-01-05 04:02:05 +08:00
parent 4b97a66f17
commit 21d5ed5f59
8 changed files with 352 additions and 3 deletions
+4 -2
View File
@@ -306,9 +306,11 @@ void TimelineMarkerList::HandleMarkerTimeChange()
MarkerAddCommand::MarkerAddCommand(TimelineMarkerList *marker_list,
const TimeRange &range, const QString &name,
int color)
: MarkerAddCommand(marker_list,
new TimelineMarker(color, range, name, &memory_manager_))
: marker_list_(marker_list)
, added_marker_(nullptr)
{
added_marker_ = new TimelineMarker(color, range, name, &memory_manager_);
added_marker_->setParent(&memory_manager_);
}
MarkerAddCommand::MarkerAddCommand(TimelineMarkerList *marker_list,