| 1180 | } |
| 1181 | |
| 1182 | void MappingSequenceEditTableWidget::dropEvent(QDropEvent *event) |
| 1183 | { |
| 1184 | if (event->dropAction() == Qt::MoveAction) { |
| 1185 | #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
| 1186 | int droppedRow = rowAt(event->position().toPoint().y()); |
| 1187 | #else |
| 1188 | int droppedRow = rowAt(event->pos().y()); |
| 1189 | #endif |
| 1190 | |
| 1191 | if (droppedRow < 0) { |
| 1192 | droppedRow = rowCount() - 1; |
| 1193 | } |
| 1194 | |
| 1195 | if (QMappingSequenceEdit::getInstance()) { |
| 1196 | emit QMappingSequenceEdit::getInstance()->mappingSequenceTableDragDropMove_Signal(m_DraggedTopRow, m_DraggedBottomRow, droppedRow); |
| 1197 | } |
| 1198 | } |
| 1199 | } |
| 1200 | |
| 1201 | void QMappingSequenceEdit::mappingSequenceTableDragDropMove(int top_row, int bottom_row, int dragged_to) |
| 1202 | { |
nothing calls this directly
no outgoing calls
no test coverage detected