| 1563 | } |
| 1564 | |
| 1565 | void 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 | |
| 1586 | void QMappingSequenceEdit::highlightSelectExtendUp() |
| 1587 | { |