* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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;
+ virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const;
+ virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const;
- virtual QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection) const;
- virtual QItemSelection mapSelectionToSource(const QItemSelection &proxySelection) const;
+ virtual QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection) const;
+ virtual QItemSelection mapSelectionToSource(const QItemSelection &proxySelection) const;
- virtual QModelIndex index(int row, int column, const QModelIndex &parent) const;
- virtual QModelIndex parent(const QModelIndex &index) const;
+ virtual QModelIndex index(int row, int column, const QModelIndex &parent) const;
+ virtual QModelIndex parent(const QModelIndex &index) const;
- virtual int rowCount(const QModelIndex &index) const;
- virtual int columnCount(const QModelIndex &index) const;
+ virtual int rowCount(const QModelIndex &index) const;
+ virtual int columnCount(const QModelIndex &index) const;
- 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_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_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);
- class _RangeRect {
- public:
- int left, right, top, bottom;
- SourceItem *topItem, *bottomItem;
- bool operator<(const _RangeRect &other) const;
- };
+ class _RangeRect
+ {
+public:
+ int left, right, top, bottom;
+ SourceItem *topItem, *bottomItem;
+ bool operator<(const _RangeRect &other) const;
+ };
- inline SourceItem *parent() const { return _parent; }
- inline SourceItem *child(int i) const { return _childs[i]; }
- inline int childCount() const { return _childs.count(); }
+ inline SourceItem *parent() const { return _parent; }
+ inline SourceItem *child(int i) const { return _childs[i]; }
+ inline int childCount() const { return _childs.count(); }
- inline void removeChild(SourceItem *item) { _childs.removeAt(_childs.indexOf(item)); }
- inline void setPos(int i) { _pos = i; }
- inline void setNext(SourceItem *next) { _next = next; }
+ inline void removeChild(SourceItem *item) { _childs.removeAt(_childs.indexOf(item)); }
+ inline void setPos(int i) { _pos = i; }
+ inline void setNext(SourceItem *next) { _next = next; }