14class ChangeTrackCommentCommand :
public QUndoCommand
19 : QUndoCommand (QObject::tr (
"Change Track Comment")), track_ (track),
20 comment_after_ (std::move (comment))
24 void undo ()
override { track_.setComment (comment_before_); }
27 comment_before_ = track_.comment ();
28 track_.setComment (comment_after_);
33 QString comment_before_;
34 QString comment_after_;