basetexteditor: make block selection accessible

This commit is contained in:
hjk
2010-09-13 13:52:50 +02:00
parent 26417ff48e
commit fb05c7a9e2
2 changed files with 17 additions and 0 deletions

View File

@@ -5786,6 +5786,21 @@ bool BaseTextEditor::inFindScope(int selectionStart, int selectionEnd)
return true;
}
void BaseTextEditor::setBlockSelection(bool on)
{
if (d->m_inBlockSelectionMode != on) {
d->m_inBlockSelectionMode = on;
if (on)
d->m_blockSelection.fromSelection(tabSettings(), textCursor());
viewport()->update();
}
}
bool BaseTextEditor::hasBlockSelection() const
{
return d->m_inBlockSelectionMode;
}
void BaseTextEditor::handleBlockSelection(int diff_row, int diff_col)
{