20class TrackCollectionOperator :
public QObject
25 WRITE setCollection NOTIFY collectionChanged)
32 explicit TrackCollectionOperator (QObject * parent =
nullptr)
43 if (collection_ != collection)
45 collection_ = collection;
46 Q_EMIT collectionChanged ();
49 Q_SIGNAL
void collectionChanged ();
54 if (undo_stack_ != undoStack)
56 undo_stack_ = undoStack;
57 Q_EMIT undoStackChanged ();
60 Q_SIGNAL
void undoStackChanged ();
72 const QList<zrythm::structure::tracks::Track *> &tracks,
83 const QList<zrythm::structure::tracks::Track *> &tracks,
Q_INVOKABLE void moveTracks(const QList< zrythm::structure::tracks::Track * > &tracks, int targetPosition, zrythm::structure::tracks::Track *targetFolder)
Moves tracks to a new position in the collection.