comparison widgets/LayerTree.h @ 1406:a18e78b9c78b fix-static-analysis

Use override throughout
author Chris Cannam
date Mon, 26 Nov 2018 13:52:27 +0000
parents 1d85aa5a49be
children 05d614f6e46d
comparison
equal deleted inserted replaced
1405:4c359c2b220c 1406:a18e78b9c78b
34 34
35 public: 35 public:
36 ModelMetadataModel(PaneStack *stack, bool waveModelsOnly, QObject *parent = 0); 36 ModelMetadataModel(PaneStack *stack, bool waveModelsOnly, QObject *parent = 0);
37 virtual ~ModelMetadataModel(); 37 virtual ~ModelMetadataModel();
38 38
39 QVariant data(const QModelIndex &index, int role) const; 39 QVariant data(const QModelIndex &index, int role) const override;
40 40
41 bool setData(const QModelIndex &index, const QVariant &value, int role); 41 bool setData(const QModelIndex &index, const QVariant &value, int role) override;
42 42
43 Qt::ItemFlags flags(const QModelIndex &index) const; 43 Qt::ItemFlags flags(const QModelIndex &index) const override;
44 44
45 QVariant headerData(int section, Qt::Orientation orientation, 45 QVariant headerData(int section, Qt::Orientation orientation,
46 int role = Qt::DisplayRole) const; 46 int role = Qt::DisplayRole) const override;
47 47
48 QModelIndex index(int row, int column, 48 QModelIndex index(int row, int column,
49 const QModelIndex &parent = QModelIndex()) const; 49 const QModelIndex &parent = QModelIndex()) const override;
50 50
51 QModelIndex parent(const QModelIndex &index) const; 51 QModelIndex parent(const QModelIndex &index) const override;
52 52
53 int rowCount(const QModelIndex &parent = QModelIndex()) const; 53 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
54 int columnCount(const QModelIndex &parent = QModelIndex()) const; 54 int columnCount(const QModelIndex &parent = QModelIndex()) const override;
55 55
56 protected slots: 56 protected slots:
57 void paneAdded(); 57 void paneAdded();
58 void paneDeleted(); 58 void paneDeleted();
59 void propertyContainerAdded(PropertyContainer *); 59 void propertyContainerAdded(PropertyContainer *);
82 82
83 public: 83 public:
84 LayerTreeModel(PaneStack *stack, QObject *parent = 0); 84 LayerTreeModel(PaneStack *stack, QObject *parent = 0);
85 virtual ~LayerTreeModel(); 85 virtual ~LayerTreeModel();
86 86
87 QVariant data(const QModelIndex &index, int role) const; 87 QVariant data(const QModelIndex &index, int role) const override;
88 88
89 bool setData(const QModelIndex &index, const QVariant &value, int role); 89 bool setData(const QModelIndex &index, const QVariant &value, int role) override;
90 90
91 Qt::ItemFlags flags(const QModelIndex &index) const; 91 Qt::ItemFlags flags(const QModelIndex &index) const override;
92 92
93 QVariant headerData(int section, Qt::Orientation orientation, 93 QVariant headerData(int section, Qt::Orientation orientation,
94 int role = Qt::DisplayRole) const; 94 int role = Qt::DisplayRole) const override;
95 95
96 QModelIndex index(int row, int column, 96 QModelIndex index(int row, int column,
97 const QModelIndex &parent = QModelIndex()) const; 97 const QModelIndex &parent = QModelIndex()) const override;
98 98
99 QModelIndex parent(const QModelIndex &index) const; 99 QModelIndex parent(const QModelIndex &index) const override;
100 100
101 int rowCount(const QModelIndex &parent = QModelIndex()) const; 101 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
102 int columnCount(const QModelIndex &parent = QModelIndex()) const; 102 int columnCount(const QModelIndex &parent = QModelIndex()) const override;
103 103
104 protected slots: 104 protected slots:
105 void paneAdded(); 105 void paneAdded();
106 void paneAboutToBeDeleted(Pane *); 106 void paneAboutToBeDeleted(Pane *);
107 void propertyContainerAdded(PropertyContainer *); 107 void propertyContainerAdded(PropertyContainer *);