Implement select all

This commit is contained in:
Gavin MacGregor
2025-11-25 19:09:56 +00:00
parent eea73592f9
commit 53fb6f0aad
3 changed files with 14 additions and 0 deletions

View File

@@ -539,6 +539,11 @@ void TeletextWidget::paste()
m_teletextDocument->undoStack()->push(new PasteCommand(m_teletextDocument, m_pageDecode.level1CharSet(m_teletextDocument->cursorRow(), m_teletextDocument->cursorColumn())));
}
void TeletextWidget::selectAll()
{
m_teletextDocument->setSelection((int)!m_teletextDocument->rowZeroAllowed(), 0, 24, 39);
}
QPair<int, int> TeletextWidget::mouseToRowAndColumn(const QPoint &mousePosition)
{
int row = mousePosition.y() / 10;