diff options
author | Thomas Zander <thomas.zander@trolltech.com> | 2009-04-27 16:38:16 +0200 |
---|---|---|
committer | Thomas Zander <thomas.zander@trolltech.com> | 2009-04-27 16:38:16 +0200 |
commit | 8d39d72f7c625bc4345580d85583a3b347a5b309 (patch) | |
tree | f49eaccb806ed606e40896ee1baf99dbe0323a5c /src/qgraphicstreeview.h | |
parent | 780ca453f8acef6abce6d998fbf6580e6e08d05d (diff) |
Replace typedef QTreeModelIterator with QtTreeModelIterator
Diffstat (limited to 'src/qgraphicstreeview.h')
-rw-r--r-- | src/qgraphicstreeview.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/qgraphicstreeview.h b/src/qgraphicstreeview.h index 83bc388..464c334 100644 --- a/src/qgraphicstreeview.h +++ b/src/qgraphicstreeview.h @@ -53,18 +53,18 @@ class QWidget; class QtGraphicsTreeViewItem : public QGraphicsWidget { public: - QtGraphicsTreeViewItem(const QTreeModelIterator &it, int index, QtGraphicsTreeView *view); + QtGraphicsTreeViewItem(const QtTreeModelIterator &it, int index, QtGraphicsTreeView *view); ~QtGraphicsTreeViewItem(); int index() const; void setIndex(int index); - QTreeModelIterator iterator() const; - void setIterator(const QTreeModelIterator &it); + QtTreeModelIterator iterator() const; + void setIterator(const QtTreeModelIterator &it); virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; - virtual QSizeF sizeHint(const QTreeModelIterator &it, const QStyleOptionViewItemV4 *option, Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; - virtual QSizeF sizeHint(const QTreeModelIterator &it, int column, const QStyleOptionViewItemV4 *option, Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; + virtual QSizeF sizeHint(const QtTreeModelIterator &it, const QStyleOptionViewItemV4 *option, Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; + virtual QSizeF sizeHint(const QtTreeModelIterator &it, int column, const QStyleOptionViewItemV4 *option, Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); virtual void itemChanged(const QList<int> &roles = QList<int>()); @@ -84,14 +84,14 @@ class QtGraphicsTreeViewItemCreatorBase { public: virtual ~QtGraphicsTreeViewItemCreatorBase() {} - virtual QtGraphicsTreeViewItem *create(const QTreeModelIterator &it, int index, QtGraphicsTreeView *view) const = 0; + virtual QtGraphicsTreeViewItem *create(const QtTreeModelIterator &it, int index, QtGraphicsTreeView *view) const = 0; }; template <class T> class QtGraphicsTreeViewItemCreator : public QtGraphicsTreeViewItemCreatorBase { public: - inline QtGraphicsTreeViewItem *create(const QTreeModelIterator &it, int index, QtGraphicsTreeView *view) const { return new T(it, index, view); } + inline QtGraphicsTreeViewItem *create(const QtTreeModelIterator &it, int index, QtGraphicsTreeView *view) const { return new T(it, index, view); } }; @@ -129,10 +129,10 @@ public: qreal maximumHorizontalOffset() const; qreal maximumVerticalOffset() const; - bool isItemExpanded(const QTreeModelIterator &it) const; + bool isItemExpanded(const QtTreeModelIterator &it) const; - void nextItem(QTreeModelIterator &it) const; - void previousItem(QTreeModelIterator &it) const; + void nextItem(QtTreeModelIterator &it) const; + void previousItem(QtTreeModelIterator &it) const; QRectF disclosureRect(const QRectF &rect) const; @@ -142,27 +142,27 @@ public: //const QList<QtGraphicsTreeViewItem*> &viewItems() const; virtual void doLayout(); - virtual QTreeModelIterator itemAt(const QPointF &position, QRectF *rect = 0) const; + virtual QtTreeModelIterator itemAt(const QPointF &position, QRectF *rect = 0) const; virtual void initStyleOption(QStyleOptionViewItemV4 *option, QPaintDevice *device = 0) const; - virtual void initStyleOption(QStyleOptionViewItemV4 *option, const QTreeModelIterator &it, int column) const; - virtual void initStyleOptionState(QStyleOptionViewItemV4 *option, const QTreeModelIterator &it, int column) const; + virtual void initStyleOption(QStyleOptionViewItemV4 *option, const QtTreeModelIterator &it, int column) const; + virtual void initStyleOptionState(QStyleOptionViewItemV4 *option, const QtTreeModelIterator &it, int column) const; void copyStyleOptionState(const QStyleOptionGraphicsItem *source, QStyleOptionViewItemV4 *dest); public Q_SLOTS: void setFirstIndex(int index); // ### flat index - item based scrolling void setHorizontalOffset(qreal offset); void setVerticalOffset(qreal offset); - void setItemExpanded(QTreeModelIterator &it, bool expanded = true); + void setItemExpanded(QtTreeModelIterator &it, bool expanded = true); void updateLayout(); Q_SIGNALS: void firstIndexChanged(int index); void horizontalOffsetChanged(qreal offset); void verticalOffsetChanged(qreal offset); - void itemClicked(QTreeModelIterator &it, Qt::MouseButton button); - void itemExpanded(QTreeModelIterator &it, int count); - void itemCollapsed(QTreeModelIterator &it, int count); + void itemClicked(QtTreeModelIterator &it, Qt::MouseButton button); + void itemExpanded(QtTreeModelIterator &it, int count); + void itemCollapsed(QtTreeModelIterator &it, int count); void layoutChanged(); protected: |