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

Method highlightSelectDown

QKeyMapper/qmappingsequenceedit.cpp:1565–1584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1563}
1564
1565void QMappingSequenceEdit::highlightSelectDown()
1566{
1567 MappingSequenceEditTableWidget *table = ui->mappingSequenceEditTable;
1568 if (table->rowCount() <= 0) {
1569 return;
1570 }
1571
1572 QList<QTableWidgetSelectionRange> ranges = table->selectedRanges();
1573 if (ranges.isEmpty()) {
1574 highlightSelectFirst();
1575 return;
1576 }
1577 const QTableWidgetSelectionRange range = ranges.first();
1578 const int bottom = range.bottomRow();
1579 if (bottom >= table->rowCount() - 1) {
1580 return;
1581 }
1582 const int newRow = bottom + 1;
1583 reselectionRangeAndScroll(newRow, newRow);
1584}
1585
1586void QMappingSequenceEdit::highlightSelectExtendUp()
1587{

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected