4#ifndef QQUICKTUMBLER_P_P_H
5#define QQUICKTUMBLER_P_P_H
18#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
19#include <QtQuickTemplates2/private/qquicktumbler_p.h>
45 int visibleItemCount = 5;
47 bool explicitWrap =
false;
48 bool modelBeingSet =
false;
49 bool currentIndexSetDuringModelChange =
false;
57 int currentIndex = -1;
58 int pendingCurrentIndex = -1;
59 bool ignoreCurrentIndexChanges =
false;
61 bool ignoreSignals =
false;
63 void _q_updateItemHeights();
64 void _q_updateItemWidths();
65 void _q_onViewCurrentIndexChanged();
66 void _q_onViewCountChanged();
67 void _q_onViewOffsetChanged();
68 void _q_onViewContentYChanged();
70 void calculateDisplacements();
72 void disconnectFromView();
73 void setupViewData(
QQuickItem *newControlContentItem);
74 void warnAboutIncorrectContentItem();
75 void syncCurrentIndex();
76 void setPendingCurrentIndex(
int index);
83 static QString propertyChangeReasonToString(PropertyChangeReason changeReason);
85 void setCurrentIndex(
int newCurrentIndex, PropertyChangeReason changeReason = InternalChange);
86 void setCount(
int newCount);
87 void setWrapBasedOnCount();
88 void setWrap(
bool shouldWrap,
bool isExplicit);
104 return attached->d_func();
The QPalette class contains color groups for each widget state.
The QQmlComponent class encapsulates a QML component definition.
void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
QPalette defaultPalette() const override
static QQuickControlPrivate * get(QQuickControl *control)
virtual void itemChildAdded(QQuickItem *, QQuickItem *)
virtual void itemChildRemoved(QQuickItem *, QQuickItem *)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
static QQuickTumblerAttachedPrivate * get(QQuickTumblerAttached *attached)
void calculateDisplacement()
void emitIfDisplacementChanged(qreal oldDisplacement, qreal newDisplacement)
void init(QQuickItem *delegateItem)
QPointer< QQuickTumbler > tumbler
@ UnsupportedContentItemType
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
static QT_BEGIN_NAMESPACE QAsn1Element wrap(quint8 type, const QAsn1Element &child)