64 int newWidth = oldWidth;
116 d->originalXLocation =
event->globalPosition().toPoint().x();
127 int offset =
event->globalPosition().toPoint().x() -
d->originalXLocation;
139 d->originalXLocation = -1;
154#include "moc_qcolumnviewgrip_p.cpp"
void mouseDoubleClickEvent(QMouseEvent *event) override
\reimp Resize the parent window to the sizeHint
void mousePressEvent(QMouseEvent *event) override
\reimp Begin watching for mouse movements
~QColumnViewGrip()
Destroys the view.
int moveGrip(int offset)
Attempt to resize the parent object by offset returns the amount of offset that it was actually able ...
void mouseReleaseEvent(QMouseEvent *event) override
\reimp Stop watching for mouse movements
void gripMoved(int offset)
void paintEvent(QPaintEvent *event) override
\reimp
void mouseMoveEvent(QMouseEvent *event) override
\reimp Calculate the movement of the grip and moveGrip() and emit gripMoved
QColumnViewGrip(QWidget *parent=nullptr)
Creates a new QColumnViewGrip with the given parent to view a model.
QObject * parent() const
Returns a pointer to the parent object.
The QPaintEvent class contains event parameters for paint events.
The QPainter class performs low-level painting on widgets and other paint devices.
constexpr int width() const noexcept
Returns the width.
The QStyleOption class stores the parameters used by QStyle functions.
void initFrom(const QWidget *w)
virtual void drawControl(ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const =0
Draws the given element with the provided painter with the style options specified by option.
Combined button and popup list for selecting options.
constexpr const T & qMax(const T &a, const T &b)
GLenum GLuint GLintptr offset
item setCursor(Qt::IBeamCursor)
[1]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent