8#include <QtQuick/private/qquickflickable_p.h>
199 emit q->effectiveScrollBarWidthChanged();
217 emit q->effectiveScrollBarHeightChanged();
244 QQuickScrollBarAttached *attached = qobject_cast<QQuickScrollBarAttached *>(qmlAttachedPropertiesObject<QQuickScrollBar>(
q,
false));
308 emit q->implicitContentWidthChanged();
323 emit q->implicitContentHeightChanged();
353 QQuickScrollBarAttached *attached = qobject_cast<QQuickScrollBarAttached *>(qmlAttachedPropertiesObject<QQuickScrollBar>(
q,
false));
362 QQuickScrollBarAttached *attached = qobject_cast<QQuickScrollBarAttached *>(qmlAttachedPropertiesObject<QQuickScrollBar>(
q,
false));
373 if (!
p->explicitInteractive)
374 p->setInteractive(interactive);
380 if (!
p->explicitInteractive)
381 p->setInteractive(interactive);
486 d->contentWidth = -1;
487 d->contentHeight = -1;
496 QQuickScrollBarAttached *attached = qobject_cast<QQuickScrollBarAttached *>(qmlAttachedPropertiesObject<QQuickScrollBar>(
this,
false));
516 return d->effectiveScrollBarWidth;
532 return d->effectiveScrollBarHeight;
581 switch (
event->type()) {
583 d->wasTouched =
true;
584 d->setScrollBarsInteractive(
false);
588 d->wasTouched =
false;
594 d->wasTouched =
false;
595 d->setScrollBarsInteractive(
true);
598 return !
d->wasTouched &&
item ==
d->flickable;
603 return item ==
d->flickable;
608 if (
d->wasTouched && (
item ==
d->verticalScrollBar() ||
item ==
d->horizontalScrollBar()))
609 d->setScrollBarsInteractive(
true);
623 d->setScrollBarsInteractive(
true);
624 if (!
d->wheelEnabled) {
636 switch (
event->key()) {
678 if (newItem !=
d->flickable) {
681 d->flickableHasExplicitContentWidth =
true;
682 d->flickableHasExplicitContentHeight =
true;
683 auto newItemAsFlickable = qobject_cast<QQuickFlickable *>(newItem);
684 if (newItem && !newItemAsFlickable)
685 qmlWarning(
this) <<
"ScrollView only supports Flickable types as its contentItem";
720 if (
d->hasContentWidth || !
d->flickableHasExplicitContentWidth) {
721 d->flickable->setContentWidth(newSize.
width());
722 d->updateScrollBarWidth();
724 if (
d->hasContentHeight || !
d->flickableHasExplicitContentHeight) {
725 d->flickable->setContentHeight(newSize.
height());
726 d->updateScrollBarHeight();
731#if QT_CONFIG(accessibility)
732QAccessible::Role QQuickScrollView::accessibleRole()
const
734 return QAccessible::Pane;
740#include "moc_qquickscrollview_p.cpp"
The QKeyEvent class describes a key event.
static QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
static bool disconnect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
void installEventFilter(QObject *filterObj)
Installs an event filter filterObj on this object.
virtual bool eventFilter(QObject *watched, QEvent *event)
Filters events if this object has been installed as an event filter for the watched object.
void removeEventFilter(QObject *obj)
Removes an event filter object obj from this object.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
QQuickDeferredPointer< QQuickItem > contentItem
virtual void executeContentItem(bool complete=false)
qreal implicitContentWidth
qreal implicitContentHeight
void setWheelEnabled(bool enabled)
void setPixelAligned(bool align)
FINALQQmlListProperty< QObject > flickableData
void setContentWidth(qreal)
void contentWidthChanged()
void contentHeightChanged()
QQmlListProperty< QQuickItem > flickableChildren
void setContentHeight(qreal)
quint32 componentComplete
QQmlListProperty< QQuickItem > children()
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setFiltersChildMouseEvents(bool filter)
Sets whether pointer events intended for this item's children should be filtered through this item.
QList< QQuickItem * > childItems() const
Returns the children of this item.
virtual void keyPressEvent(QKeyEvent *event)
This event handler can be reimplemented in a subclass to receive key press events for an item.
void setParentItem(QQuickItem *parent)
void stackAfter(const QQuickItem *)
Moves the specified sibling item to the index after this item within the list of children.
void contentChildrenChange()
void itemImplicitWidthChanged(QQuickItem *item) override
qreal getContentWidth() const override
qreal getContentHeight() const override
void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
virtual void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize)
constexpr qreal width() const noexcept
Returns the width.
constexpr qreal height() const noexcept
Returns the height.
Combined button and popup list for selecting options.
@ MouseEventNotSynthesized
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei GLsizei GLchar * source
GLdouble GLdouble GLdouble GLdouble q
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
static const struct TessellationWindingOrderTab cw[]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent