18#include <QtWidgets/private/qtwidgetsglobal_p.h>
21#include <private/qabstractitemview_p.h>
23#include <QtCore/qabstractitemmodel.h>
24#if QT_CONFIG(animation)
25#include <QtCore/qpropertyanimation.h>
27#include <QtWidgets/qabstractitemdelegate.h>
28#include <QtWidgets/qabstractitemview.h>
29#include <QtWidgets/qstyleditemdelegate.h>
57 horizontalScrollBar()->setRange(0,
v.width() -
p.width());
58 horizontalScrollBar()->setPageStep(
p.width());
59 verticalScrollBar()->setRange(0,
v.height() -
p.height());
60 verticalScrollBar()->setPageStep(
p.height());
62 QAbstractScrollArea::resizeEvent(
event);
72 QAbstractItemView::scrollContentsBy(dx, dy);
138#if QT_CONFIG(animation)
156 const QStyleOptionViewItem &
option,
The QAbstractItemView class provides the basic functionality for item view classes.
void scrollDirtyRegion(int dx, int dy)
Prepares the view for scrolling by ({dx},{dy}) pixels by moving the dirty regions in the opposite dir...
CursorAction
This enum describes the different ways to navigate between items,.
ScrollHint
\value EnsureVisible Scroll to ensure that the item is visible.
This is a delegate that will paint the triangle.
QColumnViewDelegate(QObject *parent=nullptr)
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
This pure abstract function must be reimplemented if you want to provide custom rendering.
QRegion visualRegionForSelection(const QItemSelection &) const override
Returns the region from the viewport of the items in the given selection.
QColumnViewPreviewColumn(QWidget *parent)
int verticalOffset() const override
Returns the vertical offset of the view.
bool isIndexHidden(const QModelIndex &) const override
Returns true if the item referred to by the given index is hidden in the view, otherwise returns fals...
QRect visualRect(const QModelIndex &) const override
Returns the rectangle on the viewport occupied by the item at index.
void setPreviewWidget(QWidget *widget)
void scrollContentsBy(int dx, int dy) override
QModelIndex indexAt(const QPoint &) const override
Returns the model index of the item at the viewport coordinates point.
void scrollTo(const QModelIndex &, ScrollHint) override
Scrolls the view if necessary to ensure that the item at index is visible.
void setSelection(const QRect &, QItemSelectionModel::SelectionFlags) override
Applies the selection flags to the items in or touched by the rectangle, rect.
void resizeEvent(QResizeEvent *event) override
int horizontalOffset() const override
Returns the horizontal offset of the view.
QModelIndex moveCursor(CursorAction, Qt::KeyboardModifiers) override
Returns a QModelIndex object pointing to the next object in the view, based on the given cursorAction...
void _q_gripMoved(int offset)
QAbstractItemView * createColumn(const QModelIndex &index, bool show)
void setPreviewWidget(QWidget *widget)
void _q_changeCurrentColumn()
QAbstractItemView * previewColumn
void _q_clicked(const QModelIndex &index)
QList< QAbstractItemView * > columns
void closeColumns(const QModelIndex &parent=QModelIndex(), bool build=false)
void checkColumnCreation(const QModelIndex &parent)
void _q_columnsInserted(const QModelIndex &parent, int start, int end) override
QObject * parent() const
Returns a pointer to the parent object.
The QPainter class performs low-level painting on widgets and other paint devices.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
The QResizeEvent class contains event parameters for resize events.
The QStyledItemDelegate class provides display and editing facilities for data items from a model.
Combined button and popup list for selecting options.
constexpr const T & qMax(const T &a, const T &b)
GLsizei const GLfloat * v
[13]
GLenum GLuint GLintptr offset
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
view viewport() -> scroll(dx, dy, deviceRect)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent