QtGui/qtreeview.h Source File
Go to the documentation of this file.
53 #ifndef QT_NO_TREEVIEW
55 class QTreeViewPrivate;
61 Q_PROPERTY(
int autoExpandDelay READ autoExpandDelay WRITE setAutoExpandDelay)
62 Q_PROPERTY(
int indentation READ indentation WRITE setIndentation)
63 Q_PROPERTY(
bool rootIsDecorated READ rootIsDecorated WRITE setRootIsDecorated)
64 Q_PROPERTY(
bool uniformRowHeights READ uniformRowHeights WRITE setUniformRowHeights)
65 Q_PROPERTY(
bool itemsExpandable READ itemsExpandable WRITE setItemsExpandable)
66 Q_PROPERTY(
bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled)
67 Q_PROPERTY(
bool animated READ isAnimated WRITE setAnimated)
68 Q_PROPERTY(
bool allColumnsShowFocus READ allColumnsShowFocus WRITE setAllColumnsShowFocus)
69 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap)
70 Q_PROPERTY(
bool headerHidden READ isHeaderHidden WRITE setHeaderHidden)
71 Q_PROPERTY(
bool expandsOnDoubleClick READ expandsOnDoubleClick WRITE setExpandsOnDoubleClick)
84 int autoExpandDelay() const;
85 void setAutoExpandDelay(
int delay);
87 int indentation() const;
88 void setIndentation(
int i);
90 bool rootIsDecorated() const;
91 void setRootIsDecorated(
bool show);
93 bool uniformRowHeights() const;
94 void setUniformRowHeights(
bool uniform);
96 bool itemsExpandable() const;
97 void setItemsExpandable(
bool enable);
99 bool expandsOnDoubleClick() const;
100 void setExpandsOnDoubleClick(
bool enable);
102 int columnViewportPosition(
int column) const;
103 int columnWidth(
int column) const;
105 int columnAt(
int x) const;
107 bool isColumnHidden(
int column) const;
108 void setColumnHidden(
int column,
bool hide);
110 bool isHeaderHidden() const;
111 void setHeaderHidden(
bool hide);
114 void setRowHidden(
int row, const
QModelIndex &parent,
bool hide);
116 bool isFirstColumnSpanned(
int row, const
QModelIndex &parent) const;
117 void setFirstColumnSpanned(
int row, const
QModelIndex &parent,
bool span);
120 void setExpanded(const
QModelIndex &index,
bool expand);
122 void setSortingEnabled(
bool enable);
123 bool isSortingEnabled() const;
125 void setAnimated(
bool enable);
126 bool isAnimated() const;
128 void setAllColumnsShowFocus(
bool enable);
129 bool allColumnsShowFocus() const;
131 void setWordWrap(
bool on);
132 bool wordWrap() const;
134 void keyboardSearch(const
QString &search);
142 void doItemsLayout();
145 void sortByColumn(
int column,
Qt::
SortOrder order);
155 void hideColumn(
int column);
156 void showColumn(
int column);
159 void resizeColumnToContents(
int column);
160 void sortByColumn(
int column);
163 void expandToDepth(
int depth);
166 void columnResized(
int column,
int oldSize,
int newSize);
167 void columnCountChanged(
int oldCount,
int newCount);
174 void scrollContentsBy(
int dx,
int dy);
176 void rowsAboutToBeRemoved(const
QModelIndex &parent,
int start,
int end);
179 int horizontalOffset() const;
180 int verticalOffset() const;
190 virtual
void drawRow(
QPainter *painter,
193 virtual
void drawBranches(
QPainter *painter,
202 #ifndef QT_NO_DRAGANDDROP
210 int indexRowSizeHint(
const QModelIndex &index)
const;
221 friend class QAccessibleItemView;
222 friend class QAccessibleTable2;
223 friend class QAccessibleTree;
224 friend class QAccessibleTable2Cell;
229 #ifndef QT_NO_ANIMATION
231 #endif //QT_NO_ANIMATION
236 #endif // QT_NO_TREEVIEW
242 #endif // QTREEVIEW_H
bool viewportEvent(QEvent *event)
virtual void updateGeometries()
virtual void horizontalScrollbarAction(int action)
#define Q_PRIVATE_SLOT(d, signature)
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
virtual bool isIndexHidden(const QModelIndex &index) const =0
void dragMoveEvent(QDragMoveEvent *event)
GLenum GLenum GLvoid * row
#define QT_BEGIN_NAMESPACE
GLint GLint GLsizei GLsizei GLsizei depth
GLenum GLenum GLvoid GLvoid * column
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
GLenum GLenum GLvoid GLvoid GLvoid * span
virtual int sizeHintForColumn(int column) const