mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
AudioBook Plugin: Move selection up/down
This commit is contained in:
@ -309,6 +309,28 @@ void PDFDocumentTextFlowEditorModel::restoreOriginalTexts()
|
||||
emit dataChanged(index(0, 0), index(rowCount(QModelIndex()) - 1, ColumnLast));
|
||||
}
|
||||
|
||||
void PDFDocumentTextFlowEditorModel::moveSelectionUp()
|
||||
{
|
||||
if (!m_editor || m_editor->isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_editor->moveSelectionUp();
|
||||
notifyDataChanged();
|
||||
}
|
||||
|
||||
void PDFDocumentTextFlowEditorModel::moveSelectionDown()
|
||||
{
|
||||
if (!m_editor || m_editor->isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_editor->moveSelectionDown();
|
||||
notifyDataChanged();
|
||||
}
|
||||
|
||||
void PDFDocumentTextFlowEditorModel::notifyDataChanged()
|
||||
{
|
||||
if (!m_editor || m_editor->isEmpty())
|
||||
|
Reference in New Issue
Block a user