comparison data/model/AlignmentModel.h @ 1580:c01cbe41aeb5 fix-static-analysis

Use override throughout
author Chris Cannam
date Mon, 26 Nov 2018 13:48:45 +0000
parents 0fd3661bcfff
children ad5f892c0c4d
comparison
equal deleted inserted replaced
1579:232d6ddf257d 1580:c01cbe41aeb5
34 Model *aligned, 34 Model *aligned,
35 Model *inputModel, // probably an AggregateWaveModel; may be null; I take ownership 35 Model *inputModel, // probably an AggregateWaveModel; may be null; I take ownership
36 SparseTimeValueModel *path); // I take ownership 36 SparseTimeValueModel *path); // I take ownership
37 ~AlignmentModel(); 37 ~AlignmentModel();
38 38
39 virtual bool isOK() const; 39 bool isOK() const override;
40 virtual sv_frame_t getStartFrame() const; 40 sv_frame_t getStartFrame() const override;
41 virtual sv_frame_t getEndFrame() const; 41 sv_frame_t getEndFrame() const override;
42 virtual sv_samplerate_t getSampleRate() const; 42 sv_samplerate_t getSampleRate() const override;
43 virtual bool isReady(int *completion = 0) const; 43 bool isReady(int *completion = 0) const override;
44 virtual const ZoomConstraint *getZoomConstraint() const; 44 const ZoomConstraint *getZoomConstraint() const override;
45 45
46 QString getTypeName() const { return tr("Alignment"); } 46 QString getTypeName() const override { return tr("Alignment"); }
47 47
48 const Model *getReferenceModel() const; 48 const Model *getReferenceModel() const;
49 const Model *getAlignedModel() const; 49 const Model *getAlignedModel() const;
50 50
51 sv_frame_t toReference(sv_frame_t frame) const; 51 sv_frame_t toReference(sv_frame_t frame) const;
52 sv_frame_t fromReference(sv_frame_t frame) const; 52 sv_frame_t fromReference(sv_frame_t frame) const;
53 53
54 void setPathFrom(SparseTimeValueModel *rawpath); 54 void setPathFrom(SparseTimeValueModel *rawpath);
55 void setPath(PathModel *path); 55 void setPath(PathModel *path);
56 56
57 virtual void toXml(QTextStream &stream, 57 void toXml(QTextStream &stream,
58 QString indent = "", 58 QString indent = "",
59 QString extraAttributes = "") const; 59 QString extraAttributes = "") const override;
60 60
61 signals: 61 signals:
62 void modelChanged(); 62 void modelChanged();
63 void modelChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame); 63 void modelChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame);
64 void completionChanged(); 64 void completionChanged();