Commit fb05c7a9 authored by hjk's avatar hjk
Browse files

basetexteditor: make block selection accessible

parent 26417ff4
......@@ -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());
bool BaseTextEditor::hasBlockSelection() const
return d->m_inBlockSelectionMode;
void BaseTextEditor::handleBlockSelection(int diff_row, int diff_col)
......@@ -237,6 +237,8 @@ public:
void insertCodeSnippet(const QTextCursor &cursor, const QString &snippet);
void setBlockSelection(bool on);
bool hasBlockSelection() const;
int verticalBlockSelectionFirstColumn() const;
int verticalBlockSelectionLastColumn() const;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment