diff data/model/AlignmentModel.h @ 1752:6d09d68165a4 by-id

Further review of ById: make IDs only available when adding a model to the ById store, not by querying the item directly. This means any id encountered in the wild must have been added to the store at some point (even if later released), which simplifies reasoning about lifecycles
author Chris Cannam
date Fri, 05 Jul 2019 15:28:07 +0100
parents 4abc0f08adf9
children ee7fd2c01d87
line wrap: on
line diff
--- a/data/model/AlignmentModel.h	Thu Jul 04 18:04:21 2019 +0100
+++ b/data/model/AlignmentModel.h	Fri Jul 05 15:28:07 2019 +0100
@@ -63,8 +63,8 @@
     void setPath(const Path &path);
 
     void toXml(QTextStream &stream,
-                       QString indent = "",
-                       QString extraAttributes = "") const override;
+               QString indent = "",
+               QString extraAttributes = "") const override;
 
     QString toDelimitedDataString(QString, DataExportOptions,
                                   sv_frame_t, sv_frame_t) const override {
@@ -72,11 +72,11 @@
     }
 
 signals:
-    void completionChanged();
+    void completionChanged(ModelId);
 
 protected slots:
-    void pathSourceChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame);
-    void pathSourceCompletionChanged();
+    void pathSourceChangedWithin(ModelId, sv_frame_t startFrame, sv_frame_t endFrame);
+    void pathSourceCompletionChanged(ModelId);
 
 protected:
     ModelId m_reference;