comparison widgets/LayerTree.h @ 1414:fa986b91d77f

Merge from branch fix-static-analysis
author Chris Cannam
date Wed, 09 Jan 2019 15:24:51 +0000
parents 05d614f6e46d
children 0769eaacc6bf
comparison
equal deleted inserted replaced
1413:0930a27ebea2 1414:fa986b91d77f
12 published by the Free Software Foundation; either version 2 of the 12 published by the Free Software Foundation; either version 2 of the
13 License, or (at your option) any later version. See the file 13 License, or (at your option) any later version. See the file
14 COPYING included with this distribution for more information. 14 COPYING included with this distribution for more information.
15 */ 15 */
16 16
17 #ifndef _LAYER_TREE_H_ 17 #ifndef SV_LAYER_TREE_H
18 #define _LAYER_TREE_H_ 18 #define SV_LAYER_TREE_H
19 19
20 #include <QAbstractItemModel> 20 #include <QAbstractItemModel>
21 21
22 #include <set> 22 #include <set>
23 23
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 *);