1
0
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:
Diadlo 2018-12-24 21:36:43 +03:00
parent 7aed694e45
commit 8499a71092
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -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);