Can now undo/redo styles
This commit is contained in:
parent
94438c7b97
commit
b0b04a28c8
6 changed files with 79 additions and 20 deletions
|
|
@ -98,6 +98,14 @@ bool TextPosition::operator<=(const TextPosition& o) const {
|
|||
return (*this < o) || (*this == o);
|
||||
}
|
||||
|
||||
bool TextBox::Cursor::operator==(const Cursor& o) const {
|
||||
return o.selectionBeginPos == selectionBeginPos && o.selectionEndPos == selectionEndPos && o.pos == pos;
|
||||
}
|
||||
|
||||
bool TextBox::Cursor::operator!=(const Cursor& o) const {
|
||||
return !(*this == o);
|
||||
}
|
||||
|
||||
TextBox::TextBox() {
|
||||
paragraphs.emplace_back();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue