mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: Store groupId in D&D mime data
Fix drag and drop for groups
This commit is contained in:
parent
7aed694e45
commit
8499a71092
|
@ -146,6 +146,7 @@ void GroupWidget::mouseMoveEvent(QMouseEvent* ev)
|
|||
if ((dragStartPos - ev->pos()).manhattanLength() > QApplication::startDragDistance()) {
|
||||
QMimeData* mdata = new QMimeData;
|
||||
mdata->setText(getGroup()->getName());
|
||||
mdata->setData("groupId", QByteArray::number(getGroup()->getId()));
|
||||
|
||||
QDrag* drag = new QDrag(this);
|
||||
drag->setMimeData(mdata);
|
||||
|
|
Loading…
Reference in New Issue
Block a user