Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickcumulativedirection.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
5
8
22
23QQmlListProperty<QQuickDirection> QQuickCumulativeDirection::directions()
24{
25 return QQmlListProperty<QQuickDirection>(this, &m_directions);//TODO: Proper list property
26}
27
29{
31 foreach (QQuickDirection* dir, m_directions)
32 ret += dir->sample(from);
33 return ret;
34}
35
37
38#include "moc_qquickcumulativedirection_p.cpp"
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:217
QPointF sample(const QPointF &from) override
QQuickCumulativeDirection(QObject *parent=nullptr)
\qmltype CumulativeDirection \instantiates QQuickCumulativeDirection \inqmlmodule QtQuick....
QQmlListProperty< QQuickDirection > directions
Combined button and popup list for selecting options.
return ret
QString dir
[11]