45 #include <QtGui/qabstractitemview.h> 53 #ifndef QT_NO_COLUMNVIEW 80 void setResizeGripsVisible(
bool visible);
81 bool resizeGripsVisible()
const;
96 void setSelection(
const QRect & rect, QItemSelectionModel::SelectionFlags command);
116 #endif // QT_NO_COLUMNVIEW 122 #endif // QCOLUMNVIEW_H The QItemSelectionModel class keeps track of a view's selected items.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual void setSelectionModel(QItemSelectionModel *selectionModel)
Sets the current selection model to the given selectionModel.
bool resizeGripsVisible
the way to specify if the list views gets resize grips or not
virtual bool isIndexHidden(const QModelIndex &index) const =0
Returns true if the item referred to by the given index is hidden in the view, otherwise returns fals...
virtual QRect visualRect(const QModelIndex &index) const =0
Returns the rectangle on the viewport occupied by the item at index.
virtual void setRootIndex(const QModelIndex &index)
Sets the root item to the item at the given index.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)=0
Returns a QModelIndex object pointing to the next object in the view, based on the given cursorAction...
virtual int verticalOffset() const =0
Returns the vertical offset of the view.
virtual void setModel(QAbstractItemModel *model)
Sets the model for the view to present.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void selectAll()
Selects all items in the view.
virtual void scrollTo(const QModelIndex &index, ScrollHint hint=EnsureVisible)=0
Scrolls the view if necessary to ensure that the item at index is visible.
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
This slot is called when a new item becomes the current item.
The QResizeEvent class contains event parameters for resize events.
The QRegion class specifies a clip region for a painter.
virtual int horizontalOffset() const =0
Returns the horizontal offset of the view.
The QAbstractItemModel class provides the abstract interface for item model classes.
The QAbstractItemView class provides the basic functionality for item view classes.
The QItemSelection class manages information about selected items in a model.
virtual void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command)=0
Applies the selection flags to the items in or touched by the rectangle, rect.
void resizeEvent(QResizeEvent *event)
This function is called with the given event when a resize event is sent to the widget.
The QPoint class defines a point in the plane using integer precision.
The QModelIndex class is used to locate data in a data model.
The QRect class defines a rectangle in the plane using integer precision.
The QColumnView class provides a model/view implementation of a column view.
virtual void rowsInserted(const QModelIndex &parent, int start, int end)
This slot is called when rows are inserted.
virtual QRegion visualRegionForSelection(const QItemSelection &selection) const =0
Returns the region from the viewport of the items in the given selection.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
CursorAction
This enum describes the different ways to navigate between items,.
static const KeyPair *const end
virtual QModelIndex indexAt(const QPoint &point) const =0
Returns the model index of the item at the viewport coordinates point.