mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 11:53:53 +00:00
Display QPixMap with dragged object.
This commit is contained in:
parent
3439940a8e
commit
8b799683c1
1 changed files with 2 additions and 1 deletions
|
@ -429,6 +429,7 @@ void CSVWorld::Table::mouseMoveEvent (QMouseEvent* event)
|
||||||
CSMWorld::TableMimeData *mime = new CSMWorld::TableMimeData(getUniversalId(selectedRows.begin()->row()));
|
CSMWorld::TableMimeData *mime = new CSMWorld::TableMimeData(getUniversalId(selectedRows.begin()->row()));
|
||||||
QDrag *drag = new QDrag(this);
|
QDrag *drag = new QDrag(this);
|
||||||
drag->setMimeData(mime);
|
drag->setMimeData(mime);
|
||||||
|
drag->setPixmap(QString::fromStdString(mime->getIcon()));
|
||||||
drag->start();
|
drag->start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue