update to use new dnd APIs
For details see qtbase/10b3286313c78fa380b5fe676a7c14f3ae84f017 Change-Id: I197b2c158a0ffcb21cab973169c6257afa3d2c06 Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
parent
d47119339b
commit
b2a8bcb9c4
@ -77,15 +77,19 @@ void QWaylandDrag::cancel()
|
||||
m_display->currentInputDevice()->dataDevice()->cancelDrag();
|
||||
}
|
||||
|
||||
void QWaylandDrag::move(const QPoint &globalPos)
|
||||
void QWaylandDrag::move(const QPoint &globalPos, Qt::MouseButtons b, Qt::KeyboardModifiers mods)
|
||||
{
|
||||
Q_UNUSED(globalPos);
|
||||
Q_UNUSED(b);
|
||||
Q_UNUSED(mods);
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
void QWaylandDrag::drop(const QPoint &globalPos)
|
||||
void QWaylandDrag::drop(const QPoint &globalPos, Qt::MouseButtons b, Qt::KeyboardModifiers mods)
|
||||
{
|
||||
Q_UNUSED(globalPos);
|
||||
Q_UNUSED(b);
|
||||
Q_UNUSED(mods);
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
|
@ -78,8 +78,8 @@ public:
|
||||
protected:
|
||||
void startDrag() override;
|
||||
void cancel() override;
|
||||
void move(const QPoint &globalPos) override;
|
||||
void drop(const QPoint &globalPos) override;
|
||||
void move(const QPoint &globalPos, Qt::MouseButtons b, Qt::KeyboardModifiers mods) override;
|
||||
void drop(const QPoint &globalPos, Qt::MouseButtons b, Qt::KeyboardModifiers mods) override;
|
||||
void endDrag() override;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user