1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Display QPixMap with dragged object.

This commit is contained in:
Marek Kochanowicz 2014-02-04 18:48:18 +01:00
parent 3439940a8e
commit 8b799683c1

View file

@ -421,7 +421,7 @@ void CSVWorld::Table::mouseMoveEvent (QMouseEvent* event)
if (selectedRows.size() == 0)
{
return;
return;
}
if (selectedRows.size() == 1) //tmp solution
@ -429,6 +429,7 @@ void CSVWorld::Table::mouseMoveEvent (QMouseEvent* event)
CSMWorld::TableMimeData *mime = new CSMWorld::TableMimeData(getUniversalId(selectedRows.begin()->row()));
QDrag *drag = new QDrag(this);
drag->setMimeData(mime);
drag->setPixmap(QString::fromStdString(mime->getIcon()));
drag->start();
}
}