* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
- virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const;
- virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const;
+ QModelIndex mapFromSource(const QModelIndex& sourceIndex) const override;
+ QModelIndex mapToSource(const QModelIndex& proxyIndex) const override;
- virtual QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection) const;
- virtual QItemSelection mapSelectionToSource(const QItemSelection &proxySelection) const;
+ QItemSelection mapSelectionFromSource(const QItemSelection& sourceSelection) const override;
+ QItemSelection mapSelectionToSource(const QItemSelection& proxySelection) const override;
- virtual QModelIndex index(int row, int column, const QModelIndex &parent) const;
- virtual QModelIndex parent(const QModelIndex &index) const;
+ QModelIndex index(int row, int column, const QModelIndex& parent) const override;
+ QModelIndex parent(const QModelIndex& index) const override;
- virtual int rowCount(const QModelIndex &index) const;
- virtual int columnCount(const QModelIndex &index) const;
+ int rowCount(const QModelIndex& index) const override;
+ int columnCount(const QModelIndex& index) const override;
- void on_columnsAboutToBeInserted(const QModelIndex &parent, int start, int end);
- void on_columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
- void on_columnsInserted(const QModelIndex &parent, int start, int end);
- void on_columnsRemoved(const QModelIndex &parent, int start, int end);
+ void on_columnsAboutToBeInserted(const QModelIndex& parent, int start, int end);
+ void on_columnsAboutToBeRemoved(const QModelIndex& parent, int start, int end);
+ void on_columnsInserted(const QModelIndex& parent, int start, int end);
+ void on_columnsRemoved(const QModelIndex& parent, int start, int end);
- void on_dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
-// void on_headerDataChanged(Qt::Orientation orientation, int first, int last);
+ void on_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
+ // void on_headerDataChanged(Qt::Orientation orientation, int first, int last);
- void on_rowsAboutToBeInserted(const QModelIndex &parent, int start, int end);
- void on_rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
- void on_rowsInserted(const QModelIndex &parent, int start, int end);
- void on_rowsRemoved(const QModelIndex &parent, int start, int end);
+ void on_rowsAboutToBeInserted(const QModelIndex& parent, int start, int end);
+ void on_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end);
+ void on_rowsInserted(const QModelIndex& parent, int start, int end);
+ void on_rowsRemoved(const QModelIndex& parent, int start, int end);
- void insertSubTree(const QModelIndex &source_idx, bool emitInsert = true);
- SourceItem *insertSubTreeHelper(SourceItem *parentItem, SourceItem *lastItem_, const QModelIndex &source_idx);
+ void insertSubTree(const QModelIndex& source_idx, bool emitInsert = true);
+ SourceItem* insertSubTreeHelper(SourceItem* parentItem, SourceItem* lastItem_, const QModelIndex& source_idx);
int left, right, top, bottom;
SourceItem *topItem, *bottomItem;
int left, right, top, bottom;
SourceItem *topItem, *bottomItem;
- inline SourceItem *parent() const { return _parent; }
- inline SourceItem *child(int i) const { return _childs[i]; }
+ inline SourceItem* parent() const { return _parent; }
+ inline SourceItem* child(int i) const { return _childs[i]; }