mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-17 08:26:50 -04:00
Proper conversion to QString for DropLineEdit::dropEvent()
This commit is contained in:
parent
d282bead23
commit
867ce686ae
@ -35,7 +35,7 @@ void CSVWidget::DropLineEdit::dropEvent(QDropEvent *event)
|
|||||||
if (CSVWorld::DragDropUtils::canAcceptData(*event, mDropType))
|
if (CSVWorld::DragDropUtils::canAcceptData(*event, mDropType))
|
||||||
{
|
{
|
||||||
CSMWorld::UniversalId id = CSVWorld::DragDropUtils::getAcceptedData(*event, mDropType);
|
CSMWorld::UniversalId id = CSVWorld::DragDropUtils::getAcceptedData(*event, mDropType);
|
||||||
setText(id.getId().c_str());
|
setText(QString::fromUtf8(id.getId().c_str()));
|
||||||
emit tableMimeDataDropped(id, CSVWorld::DragDropUtils::getTableMimeData(*event)->getDocumentPtr());
|
emit tableMimeDataDropped(id, CSVWorld::DragDropUtils::getTableMimeData(*event)->getDocumentPtr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user