Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
#
include
<
QtCore
/
qtconfigmacros
.
h
>
5
#
undef
QT_NO_FOREACH
// this file contains unported legacy Q_FOREACH uses
6
7
#
include
"qquickcumulativedirection_p.h"
8
QT_BEGIN_NAMESPACE
9
10
/*!
11
\qmltype CumulativeDirection
12
\nativetype QQuickCumulativeDirection
13
\inqmlmodule QtQuick.Particles
14
\inherits Direction
15
\brief For specifying a direction made of other directions.
16
\ingroup qtquick-particles
17
18
The CumulativeDirection element will act as a direction that sums the directions within it.
19
*/
20
QQuickCumulativeDirection::QQuickCumulativeDirection(QObject *parent):QQuickDirection(parent)
21
{
22
}
23
24
QQmlListProperty<QQuickDirection> QQuickCumulativeDirection::directions()
25
{
26
return
QQmlListProperty<QQuickDirection>(
this
, &m_directions);
//TODO: Proper list property
27
}
28
29
QPointF QQuickCumulativeDirection::sample(
const
QPointF &from)
30
{
31
QPointF ret;
32
foreach (QQuickDirection* dir, m_directions)
33
ret += dir->sample(from);
34
return
ret;
35
}
36
37
QT_END_NAMESPACE
38
39
#
include
"moc_qquickcumulativedirection_p.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtdeclarative
src
particles
qquickcumulativedirection.cpp
Generated on
for Qt by
1.16.1