get index to where we are dropping

This commit is contained in:
gus 2014-02-12 11:32:01 +01:00
parent 2e33ab3a13
commit 6cf561f713

View file

@ -465,6 +465,8 @@ void CSVWorld::Table::dropEvent(QDropEvent *event)
{ {
std::cout << "drop"; std::cout << "drop";
event->acceptProposedAction(); event->acceptProposedAction();
QModelIndex index = indexAt(event->pos());
std::cout << index.row();
} }
void CSVWorld::Table::dragMoveEvent(QDragMoveEvent *event) void CSVWorld::Table::dragMoveEvent(QDragMoveEvent *event)