comparison layer/SingleColourLayer.h @ 1406:a18e78b9c78b fix-static-analysis

Use override throughout
author Chris Cannam
date Mon, 26 Nov 2018 13:52:27 +0000
parents 1d7921b1852f
children
comparison
equal deleted inserted replaced
1405:4c359c2b220c 1406:a18e78b9c78b
42 /** 42 /**
43 * Return true if the layer currently has a dark colour on a light 43 * Return true if the layer currently has a dark colour on a light
44 * background, false if it has a light colour on a dark 44 * background, false if it has a light colour on a dark
45 * background. 45 * background.
46 */ 46 */
47 virtual bool hasLightBackground() const; 47 bool hasLightBackground() const override;
48 48
49 /** 49 /**
50 * Implements Layer::getLayerColourSignificance() 50 * Implements Layer::getLayerColourSignificance()
51 */ 51 */
52 virtual ColourSignificance getLayerColourSignificance() const { 52 ColourSignificance getLayerColourSignificance() const override {
53 return ColourDistinguishes; 53 return ColourDistinguishes;
54 } 54 }
55 55
56 virtual QPixmap getLayerPresentationPixmap(QSize size) const; 56 QPixmap getLayerPresentationPixmap(QSize size) const override;
57 57
58 virtual PropertyList getProperties() const; 58 PropertyList getProperties() const override;
59 virtual QString getPropertyLabel(const PropertyName &) const; 59 QString getPropertyLabel(const PropertyName &) const override;
60 virtual PropertyType getPropertyType(const PropertyName &) const; 60 PropertyType getPropertyType(const PropertyName &) const override;
61 virtual QString getPropertyGroupName(const PropertyName &) const; 61 QString getPropertyGroupName(const PropertyName &) const override;
62 virtual int getPropertyRangeAndValue(const PropertyName &, 62 int getPropertyRangeAndValue(const PropertyName &,
63 int *min, int *max, int *deflt) const; 63 int *min, int *max, int *deflt) const override;
64 virtual QString getPropertyValueLabel(const PropertyName &, 64 QString getPropertyValueLabel(const PropertyName &,
65 int value) const; 65 int value) const override;
66 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; 66 RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const override;
67 virtual void setProperty(const PropertyName &, int value); 67 void setProperty(const PropertyName &, int value) override;
68 68
69 virtual void toXml(QTextStream &stream, QString indent = "", 69 void toXml(QTextStream &stream, QString indent = "",
70 QString extraAttributes = "") const; 70 QString extraAttributes = "") const override;
71 71
72 virtual void setProperties(const QXmlAttributes &attributes); 72 void setProperties(const QXmlAttributes &attributes) override;
73 73
74 virtual void setDefaultColourFor(LayerGeometryProvider *v); 74 virtual void setDefaultColourFor(LayerGeometryProvider *v);
75 75
76 protected: 76 protected:
77 SingleColourLayer(); 77 SingleColourLayer();