8#include <qpa/qplatformdrag.h>
9#include <qpa/qplatformintegration.h>
10#include <private/qguiapplication_p.h>
46 if (m_currentDropTarget ==
target)
49 m_currentDropTarget =
target;
50 if (!dropped && m_object) {
58 return m_currentDropTarget;
63 if (!
o || m_object ==
o)
66 if (!m_platformDrag || !
o->source()) {
72 qWarning(
"QDragManager::drag in possibly invalid state");
78 m_object->d_func()->
target =
nullptr;
91#include "moc_qdnd_p.cpp"
static bool closingDown()
Returns true if the application objects are being destroyed; otherwise returns false.
void setCurrentTarget(QObject *target, bool dropped=false)
Qt::DropAction drag(QDrag *)
QObject * currentTarget() const
static QDragManager * self()
QObject * source() const
Returns the source of the drag object.
QObject * target() const
Returns the target of the drag and drop operation.
void targetChanged(QObject *newTarget)
This signal is emitted when the target of the drag and drop operation changes, with newTarget the new...
static QGuiApplicationPrivate * instance()
void deleteLater()
\threadsafe
bool isNull() const
Returns true if the referenced object has been destroyed or if there is no referenced object; otherwi...
Combined button and popup list for selecting options.