18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "private/qabstractitemview_p.h"
20#include <QtCore/qabstractitemmodel.h>
21#include <QtCore/qlist.h>
22#if QT_CONFIG(animation)
23#include <QtCore/qvariantanimation.h>
54 header(
nullptr), indent(20), lastViewedItem(0), defaultItemHeight(-1),
55 uniformRowHeights(
false), rootDecoration(true),
56 itemsExpandable(true), sortingEnabled(
false),
57 expandsOnDoubleClick(true),
58 allColumnsShowFocus(
false), customIndent(
false), current(0), spanning(
false),
59 animationsEnabled(
false), columnResizeTimerID(0),
60 autoExpandDelay(-1), hoverBranch(-1), geometryRecursionBlock(
false), hasRemovedItems(
false),
65 int logicalIndexForTree()
const;
68 return logicalIndex == logicalIndexForTree();
74#if QT_CONFIG(animation)
82 int top()
const {
return startValue().toInt(); }
88 void beginAnimatedOperation();
91 void _q_endAnimatedOperation();
94 void expand(
int item,
bool emitSignal);
95 void collapse(
int item,
bool emitSignal);
99 void _q_modelAboutToBeReset();
104 void layout(
int item,
bool recusiveExpanding =
false,
bool afterIsUninitialized =
false);
106 int pageUp(
int item)
const;
107 int pageDown(
int item)
const;
108 int itemForKeyHome()
const;
109 int itemForKeyEnd()
const;
111 int itemHeight(
int item)
const;
112 int indentationForItem(
int item)
const;
113 int coordinateForItem(
int item)
const;
114 int itemAtCoordinate(
int coordinate)
const;
120 void removeViewItems(
int pos,
int count);
122 bool checkViewItems()
const;
125 int firstVisibleItem(
int *
offset =
nullptr)
const;
126 int lastVisibleItem(
int firstVisual = -1,
int offset = -1)
const;
127 int columnAt(
int x)
const;
130 bool expandOrCollapseItemAtPos(
const QPoint &
pos);
132 void updateScrollBars();
134 int itemDecorationAt(
const QPoint &
pos)
const;
149 void calcLogicalIndices(
QList<int> *logicalIndices,
179 expandedIndexes.
insert(idx);
199 if (i < 0 || i >= viewItems.
size())
206 {
int i =
item;
while (isItemHiddenOrDisabled(--
item)){}
return item < 0 ?
i :
item; }
210 { viewItems[
item].height = 0; }
218 void updateIndentationFromStyle();
Direction
This enum describes the direction of the animation when in \l Running state.
virtual void _q_modelDestroyed()
virtual QItemViewPaintPairs draggablePaintPairs(const QModelIndexList &indexes, QRect *r) const
virtual void adjustViewOptionsForIndex(QStyleOptionViewItem *, const QModelIndex &) const
virtual QRect intersectedRect(const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const
virtual void _q_columnsRemoved(const QModelIndex &parent, int start, int end)
bool isPersistent(const QModelIndex &index) const
virtual void _q_columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
bool isIndexEnabled(const QModelIndex &index) const
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
Qt::ItemFlags flags() const
The QPainter class performs low-level painting on widgets and other paint devices.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
bool contains(const T &value) const
iterator insert(const T &value)
int columnCount(const QModelIndex &parent=QModelIndex()) const override
\reimp
bool isRowHidden(const QModelIndex &idx) const
bool isItemHiddenOrDisabled(int i) const
void invalidateHeightCache(int item) const
bool expandsOnDoubleClick
bool isIndexExpanded(const QModelIndex &idx) const
bool storeExpanded(const QPersistentModelIndex &idx)
int below(int item) const
bool isTreePosition(int logicalIndex) const
QPair< int, int > leftAndRight
QList< int > columnsToUpdate
QList< QTreeViewItem > viewItems
int accessibleTable2Index(const QModelIndex &index) const
int above(int item) const
QSet< QPersistentModelIndex > hiddenIndexes
QSet< QPersistentModelIndex > spanningIndexes
bool geometryRecursionBlock
QSet< QPersistentModelIndex > expandedIndexes
void updateChildCount(const int parentItem, const int delta)
The QTreeView class provides a default model/view implementation of a tree view.
Combined button and popup list for selecting options.
std::pair< T1, T2 > QPair
static QString header(const QString &name)
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLint level
GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble GLdouble top
GLenum GLenum GLsizei count
GLenum GLuint GLintptr offset
GLenum GLenum GLsizei void GLsizei void * column
GLfixed GLfixed GLint GLint order
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define QT_REQUIRE_CONFIG(feature)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QSqlQueryModel * model
[16]
view viewport() -> scroll(dx, dy, deviceRect)
selection select(topLeft, bottomRight)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent