KDeclarative
DeclarativeDragArea.cpp
36 , m_data(new DeclarativeMimeData()) // m_data is owned by us, and we shouldn't pass it to Qt directly
55 The delegate is the item that will be displayed next to the mouse cursor during the drag and drop operation.
77 The QML element that is the source of this drag and drop operation. This can be defined to any item, and will
238 if (!m_enabled || QLineF(event->globalPosition(), m_buttonDownPos).length() < m_startDragDistance) {
310 DeclarativeMimeData *dataCopy = new DeclarativeMimeData(m_data); // Qt will take ownership of this copy and delete it.
353 // drag->setHotSpot(QPoint(drag->pixmap().width()/2, drag->pixmap().height()/2)); // TODO: Make a property for that
Definition DeclarativeMimeData.h:18
KOSM_EXPORT double distance(const std::vector< const OSM::Node * > &path, Coordinate coord)
Qt::DropAction exec(Qt::DropActions supportedActions)
void setMimeData(QMimeData *data)
void setPixmap(const QPixmap &pixmap)
MouseButtonPress
QStyleHints * styleHints()
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
QIcon fromTheme(const QString &name)
bool isNull() const const
qreal length() const const
qsizetype count() const const
bool isEmpty() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void killTimer(int id)
int startTimer(int interval, Qt::TimerType timerType)
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
QImage toImage() const const
void grabMouse()
void ungrabMouse()
virtual bool childMouseEventFilter(QQuickItem *item, QEvent *event)
virtual bool event(QEvent *ev) override
QSharedPointer< QQuickItemGrabResult > grabToImage(const QSize &targetSize)
parent
void setKeepMouseGrab(bool keep)
QSizeF size() const const
QQuickWindow * window() const const
void ready()
startDragDistance
MoveAction
transparent
LeftButton
MouseEventSynthesizedByQt
bool canConvert() const const
QString toString() const const
T value() const const
qreal devicePixelRatio() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.