6#include <QtQuickTemplates2/private/qquickitemdelegate_p_p.h>
7#include <QtQuick/private/qquicktaphandler_p.h>
8#include <QtQuick/private/qquicktreeview_p_p.h>
248 auto view =
q->treeView();
251 if (!
view->pointerNavigationEnabled())
302 if (
view && !
view->pointerNavigationEnabled())
306 if (tapHandler->isPressed())
307 d->handlePress(
p.position(), 0);
308 else if (tapHandler->tapCount() > 0)
309 d->handleRelease(
p.position(), 0);
313 if (tapHandler->tapCount() > 1 && !tapHandler->isPressed())
323 d->updateIndicatorVisibility();
330 const auto view =
d->m_treeView;
331 if (
view &&
view->pointerNavigationEnabled()) {
355 return d_func()->m_indentation;
370 return d_func()->m_isTreeNode;
380 d->updateIndicatorVisibility();
386 return d_func()->m_hasChildren;
396 d->updateIndicatorVisibility();
402 return d_func()->m_expanded;
417 return d_func()->m_current;
427 emit currentChanged();
432 return d_func()->m_selected;
442 emit selectedChanged();
447 return d_func()->m_editing;
457 emit editingChanged();
462 return d_func()->m_depth;
477 return d_func()->m_treeView;
494 d->updateIndicatorVisibility();
495 d->updateIndicatorPointerHandlers();
500 return d_func()->m_leftMargin;
515 return d_func()->m_rightMargin;
530#include "moc_qquicktreeviewdelegate_p.cpp"
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)
The QPalette class contains color groups for each widget state.
QVariant contextProperty(const QString &) const
Returns the value of the name property for this context as a QVariant.
virtual void componentComplete()=0
Invoked after the root component that caused this instantiation has completed construction.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
qreal x
\qmlproperty real QtQuick::Item::x \qmlproperty real QtQuick::Item::y \qmlproperty real QtQuick::Item...
virtual void mousePressEvent(QMouseEvent *event)
This event handler can be reimplemented in a subclass to receive mouse press events for an item.
qreal width
This property holds the width of this item.
void setAcceptedModifiers(Qt::KeyboardModifiers acceptedModifiers)
\qmlproperty flags PointerDeviceHandler::acceptedModifiers
void setGesturePolicy(GesturePolicy gesturePolicy)
\qmlproperty enumeration QtQuick::TapHandler::gesturePolicy
void tapped(QEventPoint eventPoint, Qt::MouseButton)
static QPalette palette(Scope scope)
static QFont font(Scope scope)
bool m_pressOnTopOfIndicator
void updateIndicatorPointerHandlers()
QPointer< QQuickTapHandler > m_tapHandlerOnIndicator
void updateIndicatorVisibility()
QPalette defaultPalette() const override
QPointer< QQuickTreeView > m_treeView
void setEditing(bool editing)
void setRightMargin(qreal rightMargin)
void setHasChildren(bool hasChildren)
void setExpanded(bool expanded)
void setIndentation(qreal indentation)
void setTreeView(QQuickTreeView *treeView)
void setSelected(bool selected)
void indentationChanged()
void setCurrent(bool current)
QFont defaultFont() const override
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void rightMarginChanged()
void mousePressEvent(QMouseEvent *event) override
This event handler can be reimplemented in a subclass to receive mouse press events for an item.
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
QQuickTreeView * treeView
QQuickTreeViewDelegate(QQuickItem *parent=nullptr)
void setIsTreeNode(bool isTreeNode)
void hasChildrenChanged()
void setLeftMargin(qreal leftMargin)
\inmodule QtCore\reentrant
int toInt(bool *ok=nullptr) const
Returns the variant as an int if the variant has userType() \l QMetaType::Int, \l QMetaType::Bool,...
Combined button and popup list for selecting options.
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
GLint GLenum GLsizei GLsizei GLsizei depth
GLdouble GLdouble GLdouble GLdouble q
GLenum GLenum GLsizei void * row
QQmlContext * qmlContext(const QObject *obj)
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent