6#include <QtCore/qloggingcategory.h>
7#include <QtQuick/private/qquickitem_p.h>
8#include <QtQuick/private/qquicklistview_p.h>
9#include <QtQuick/private/qquickpathview_p.h>
11#include <QtQuickTemplates2/private/qquicktumbler_p.h>
12#include <QtQuickTemplates2/private/qquicktumbler_p_p.h>
32 qCDebug(lcTumblerView) <<
"setting model to:" <<
model <<
"on"
33 << (m_pathView ?
static_cast<QObject*
>(m_pathView) :
static_cast<QObject*
>(m_listView));
40 m_pathView->setModel(m_model);
41 }
else if (m_listView) {
61 << (m_pathView ?
static_cast<QObject*
>(m_pathView) :
static_cast<QObject*
>(m_listView));
68 m_pathView->setDelegate(m_delegate);
89void QQuickTumblerView::createView()
95 if (m_tumbler->
wrap()) {
108 m_listView =
nullptr;
112 qCDebug(lcTumblerView) <<
"creating PathView";
130 qCDebug(lcTumblerView) <<
"finished creating PathView";
139 m_pathView =
nullptr;
143 qCDebug(lcTumblerView) <<
"creating ListView";
166 qCDebug(lcTumblerView) <<
"finished creating ListView";
172void QQuickTumblerView::updateView()
194void QQuickTumblerView::updateModel()
264 m_tumbler = qobject_cast<QQuickTumbler*>(
parentItem());
268 connect(m_tumbler, &QQuickTumbler::wrapChanged,
this, &QQuickTumblerView::createView);
279 if (m_tumbler->
wrap())
287#include "moc_qquicktumblerview_p.cpp"
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
\threadsafe
void deleteLater()
\threadsafe
The QQmlComponent class encapsulates a QML component definition.
static void setContextForObject(QObject *, QQmlContext *)
Sets the QQmlContext for the object to context.
void setPreferredHighlightEnd(qreal)
void setModel(const QVariant &)
void setDelegate(QQmlComponent *)
void setPreferredHighlightBegin(qreal)
void setHighlightRangeMode(HighlightRangeMode mode)
void setCurrentIndex(int idx)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setSize(const QSizeF &size)
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
void setParentItem(QQuickItem *parent)
void componentComplete() override
\reimp Derived classes should call the base class method before adding their own actions to perform a...
qreal width
This property holds the width of this item.
QQuickItem * parentItem() const
virtual void itemChange(ItemChange, const ItemChangeData &)
Called when change occurs for this item.
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
qreal height
This property holds the height of this item.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
void setHighlightMoveDuration(int) override
void setSnapMode(SnapMode mode)
void setPreferredHighlightBegin(qreal)
void setModel(const QVariant &)
int highlightMoveDuration
void setDelegate(QQmlComponent *)
void setHighlightMoveDuration(int)
void setPath(QQuickPath *)
void setDragMargin(qreal margin)
void setPathItemCount(int)
void setPreferredHighlightEnd(qreal)
void _q_onViewCountChanged()
static QQuickTumblerPrivate * get(QQuickTumbler *tumbler)
void setPath(QQuickPath *path)
void setModel(const QVariant &model)
void componentComplete() override
\reimp Derived classes should call the base class method before adding their own actions to perform a...
void itemChange(ItemChange change, const ItemChangeData &data) override
Called when change occurs for this item.
void setDelegate(QQmlComponent *delegate)
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void visibleItemCountChanged()
\inmodule QtCore\reentrant
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei const GLchar *const * path
QQmlContext * qmlContext(const QObject *obj)
void QQml_setParent_noEvent(QObject *object, QObject *parent)
Makes the object a child of parent.
QSqlQueryModel * model
[16]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent