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

Method highlightSelectUp

QKeyMapper/qmappingsequenceedit.cpp:1544–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1542}
1543
1544void QMappingSequenceEdit::highlightSelectUp()
1545{
1546 MappingSequenceEditTableWidget *table = ui->mappingSequenceEditTable;
1547 if (table->rowCount() <= 0) {
1548 return;
1549 }
1550
1551 QList<QTableWidgetSelectionRange> ranges = table->selectedRanges();
1552 if (ranges.isEmpty()) {
1553 highlightSelectLast();
1554 return;
1555 }
1556 const QTableWidgetSelectionRange range = ranges.first();
1557 const int top = range.topRow();
1558 if (top <= 0) {
1559 return;
1560 }
1561 const int newRow = top - 1;
1562 reselectionRangeAndScroll(newRow, newRow);
1563}
1564
1565void QMappingSequenceEdit::highlightSelectDown()
1566{

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected