Commit 162cf07d authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent 195b37cf
......@@ -635,12 +635,15 @@ void PlainTextEditor::deleteEndOfLine()
setTextCursor(cursor);
}
void PlainTextEditor::moveUpDownText()
void PlainTextEditor::moveUpDownText(bool moveUp)
{
//TODO select all block text
QTextCursor cursor = textCursor();
cursor.beginEditBlock();
cursor.movePosition(QTextCursor::StartOfBlock, QTextCursor::MoveAnchor);
cursor.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor);
//TODO more
cursor.endEditBlock();
setTextCursor(cursor);
}
......
......@@ -122,7 +122,7 @@ private:
void deleteWordForward();
void highlightWord(int length, int pos);
void deleteEndOfLine();
void moveUpDownText();
void moveUpDownText(bool moveUp);
class PlainTextEditorPrivate;
PlainTextEditorPrivate *const d;
};
......
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