18#include <QtQuick/qquickitem.h>
20#include <private/qintrusivelist_p.h>
21#include <private/qqmlguard_p.h>
22#include <private/qtquickglobal_p.h>
24#include <QtCore/qmimedata.h>
25#include <QtCore/qstringlist.h>
26#include <QtCore/qurl.h>
44 static void objectDestroyedImpl(
QQmlGuardImpl *guard) {
delete static_cast<Item *
>(guard); }
47 typedef QIntrusiveList<Item, &Item::node>
ItemList;
59 return *m_items.
first();
80 QVarLengthArray<QQuickItem *, 4> m_ignoreDragItems;
94 m_defaultAction = from.proposedAction(); m_dropAction = from.dropAction(); }
96 static void copyActions(QDropEvent *to,
const QDropEvent &from) {
115 Qt::DropActions m_supportedActions;
133 Q_PROPERTY(
bool active READ active NOTIFY activeChanged FINAL)
134 Q_PROPERTY(
bool filterChildren READ filterChildren WRITE setFilterChildren NOTIFY filterChildrenChanged FINAL)
135 Q_PROPERTY(
bool smoothed READ smoothed WRITE setSmoothed NOTIFY smoothedChanged FINAL)
138 Q_PROPERTY(
qreal threshold READ threshold WRITE setThreshold NOTIFY thresholdChanged RESET resetThreshold FINAL)
157 enum Axis { XAxis=0x01, YAxis=0x02, XAndYAxis=0x03, XandYAxis=XAndYAxis };
171 bool smoothed()
const;
172 void setSmoothed(
bool smooth);
174 qreal threshold()
const;
175 void setThreshold(
qreal);
176 void resetThreshold();
179 void setActive(
bool);
181 bool filterChildren()
const;
182 void setFilterChildren(
bool);
206 bool _filterChildren: 1;
222 Q_PROPERTY(
QUrl imageSource READ imageSource WRITE setImageSource NOTIFY imageSourceChanged FINAL)
224 Q_PROPERTY(
QSize imageSourceSize READ imageSourceSize WRITE setImageSourceSize NOTIFY imageSourceSizeChanged FINAL)
227 Q_PROPERTY(
Qt::DropActions supportedActions READ supportedActions WRITE setSupportedActions NOTIFY supportedActionsChanged FINAL)
228 Q_PROPERTY(
Qt::DropAction proposedAction READ proposedAction WRITE setProposedAction NOTIFY proposedActionChanged FINAL)
239 void setActive(
bool active);
248 void setHotSpot(const
QPointF &hotSpot);
250 QUrl imageSource() const;
251 void setImageSource(const
QUrl &
url);
253 QSize imageSourceSize() const;
254 void setImageSourceSize(const
QSize &
size);
262 Qt::DropActions supportedActions() const;
263 void setSupportedActions(
Qt::DropActions actions);
265 Qt::DropAction proposedAction() const;
266 void setProposedAction(
Qt::DropAction action);
269 void setDragType(
QQuickDrag::DragType dragType);
282 void dragFinished(
Qt::DropAction dropAction);
284 void activeChanged();
285 void sourceChanged();
286 void targetChanged();
287 void hotSpotChanged();
288 void imageSourceChanged();
289 void imageSourceSizeChanged();
291 void mimeDataChanged();
292 void supportedActionsChanged();
293 void proposedActionChanged();
294 void dragTypeChanged();
void insert(N *n)
Insert object into the list.
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the list.
const N * first() const
Returns the first entry in this list, or null if the list is empty.
iterator begin()
Returns an STL-style interator pointing to the first item in the list.
\inmodule QtCore\reentrant
iterator release(iterator at)
ItemList::iterator iterator
void grab(QQuickItem *item)
void setTarget(QObject *target)
void filterChildrenChanged()
void setProposedAction(Qt::DropAction action)
static void setProposedAction(QDropEvent *event, Qt::DropAction action)
static void copyActions(QDropEvent *to, const QDropEvent &from)
void copyActions(const QDropEvent &from)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
std::list< Item > ItemList
Combined button and popup list for selecting options.
static const QCssKnownValue properties[NumProperties - 1]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei GLsizei GLchar * source
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
#define QT_REQUIRE_CONFIG(feature)
QUrl url("example.com")
[constructor-url-reference]