QtGui/qtableview.h Source File
Go to the documentation of this file.
53 #ifndef QT_NO_TABLEVIEW
56 class QTableViewPrivate;
61 Q_PROPERTY(
bool showGrid READ showGrid WRITE setShowGrid)
63 Q_PROPERTY(
bool sortingEnabled READ isSortingEnabled WRITE setSortingEnabled)
64 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap)
65 Q_PROPERTY(
bool cornerButtonEnabled READ isCornerButtonEnabled WRITE setCornerButtonEnabled)
81 int rowViewportPosition(
int row) const;
82 int rowAt(
int y) const;
85 int rowHeight(
int row) const;
87 int columnViewportPosition(
int column) const;
88 int columnAt(
int x) const;
91 int columnWidth(
int column) const;
93 bool isRowHidden(
int row) const;
94 void setRowHidden(
int row,
bool hide);
96 bool isColumnHidden(
int column) const;
97 void setColumnHidden(
int column,
bool hide);
99 void setSortingEnabled(
bool enable);
100 bool isSortingEnabled() const;
102 bool showGrid() const;
107 void setWordWrap(
bool on);
108 bool wordWrap() const;
110 void setCornerButtonEnabled(
bool enable);
111 bool isCornerButtonEnabled() const;
117 void setSpan(
int row,
int column,
int rowSpan,
int columnSpan);
118 int rowSpan(
int row,
int column) const;
119 int columnSpan(
int row,
int column) const;
122 void sortByColumn(
int column,
Qt::
SortOrder order);
125 void selectRow(
int row);
126 void selectColumn(
int column);
127 void hideRow(
int row);
128 void hideColumn(
int column);
129 void showRow(
int row);
130 void showColumn(
int column);
131 void resizeRowToContents(
int row);
132 void resizeRowsToContents();
133 void resizeColumnToContents(
int column);
134 void resizeColumnsToContents();
135 void sortByColumn(
int column);
136 void setShowGrid(
bool show);
139 void rowMoved(
int row,
int oldIndex,
int newIndex);
140 void columnMoved(
int column,
int oldIndex,
int newIndex);
141 void rowResized(
int row,
int oldHeight,
int newHeight);
142 void columnResized(
int column,
int oldWidth,
int newWidth);
143 void rowCountChanged(
int oldCount,
int newCount);
144 void columnCountChanged(
int oldCount,
int newCount);
148 void scrollContentsBy(
int dx,
int dy);
155 int horizontalOffset() const;
156 int verticalOffset() const;
163 void updateGeometries();
165 int sizeHintForRow(
int row) const;
166 int sizeHintForColumn(
int column) const;
168 void verticalScrollbarAction(
int action);
169 void horizontalScrollbarAction(
int action);
171 bool isIndexHidden(const
QModelIndex &index) const;
179 friend class QAccessibleItemView;
187 Q_PRIVATE_SLOT(d_func(),
void _q_updateSpanInsertedColumns(QModelIndex,
int,
int))
188 Q_PRIVATE_SLOT(d_func(),
void _q_updateSpanRemovedRows(QModelIndex,
int,
int))
189 Q_PRIVATE_SLOT(d_func(),
void _q_updateSpanRemovedColumns(QModelIndex,
int,
int))
192 #endif // QT_NO_TABLEVIEW
198 #endif // QTABLEVIEW_H
#define Q_PRIVATE_SLOT(d, signature)
GLenum GLenum GLvoid * row
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLsizei height
GLenum GLenum GLvoid GLvoid * column