Mercurial > hg > svcore
comparison base/Preferences.h @ 1580:c01cbe41aeb5 fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:48:45 +0000 |
parents | 07f23b90701a |
children | ad5f892c0c4d |
comparison
equal
deleted
inserted
replaced
1579:232d6ddf257d | 1580:c01cbe41aeb5 |
---|---|
25 Q_OBJECT | 25 Q_OBJECT |
26 | 26 |
27 public: | 27 public: |
28 static Preferences *getInstance(); | 28 static Preferences *getInstance(); |
29 | 29 |
30 virtual PropertyList getProperties() const; | 30 PropertyList getProperties() const override; |
31 virtual QString getPropertyLabel(const PropertyName &) const; | 31 QString getPropertyLabel(const PropertyName &) const override; |
32 virtual PropertyType getPropertyType(const PropertyName &) const; | 32 PropertyType getPropertyType(const PropertyName &) const override; |
33 virtual int getPropertyRangeAndValue(const PropertyName &, int *, int *, int *) const; | 33 int getPropertyRangeAndValue(const PropertyName &, int *, int *, int *) const override; |
34 virtual QString getPropertyValueLabel(const PropertyName &, int value) const; | 34 QString getPropertyValueLabel(const PropertyName &, int value) const override; |
35 virtual QString getPropertyContainerName() const; | 35 QString getPropertyContainerName() const override; |
36 virtual QString getPropertyContainerIconName() const; | 36 QString getPropertyContainerIconName() const override; |
37 | 37 |
38 enum SpectrogramSmoothing { | 38 enum SpectrogramSmoothing { |
39 NoSpectrogramSmoothing, | 39 NoSpectrogramSmoothing, |
40 SpectrogramInterpolated | 40 SpectrogramInterpolated |
41 }; | 41 }; |
106 } | 106 } |
107 | 107 |
108 bool getShowSplash() const { return m_showSplash; } | 108 bool getShowSplash() const { return m_showSplash; } |
109 | 109 |
110 public slots: | 110 public slots: |
111 virtual void setProperty(const PropertyName &, int); | 111 void setProperty(const PropertyName &, int) override; |
112 | 112 |
113 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); | 113 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); |
114 void setSpectrogramXSmoothing(SpectrogramXSmoothing smoothing); | 114 void setSpectrogramXSmoothing(SpectrogramXSmoothing smoothing); |
115 void setTuningFrequency(double freq); | 115 void setTuningFrequency(double freq); |
116 void setPropertyBoxLayout(PropertyBoxLayout layout); | 116 void setPropertyBoxLayout(PropertyBoxLayout layout); |