MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / dropEvent

Method dropEvent

QKeyMapper/qmappingsequenceedit.cpp:1182–1199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180}
1181
1182void 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
1201void QMappingSequenceEdit::mappingSequenceTableDragDropMove(int top_row, int bottom_row, int dragged_to)
1202{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected