diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-12 11:07:22 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-12 11:07:22 +0100 |
commit | cec1d9ea562e3d52c98f1219db5e186943f2f0d6 (patch) | |
tree | 3a66ff06ef16cce96e215644032e6c9fac2cbe8a /plugingui/textedit.cc | |
parent | dc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff) |
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/textedit.cc')
-rw-r--r-- | plugingui/textedit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/textedit.cc b/plugingui/textedit.cc index 6274d37..4e94566 100644 --- a/plugingui/textedit.cc +++ b/plugingui/textedit.cc @@ -83,7 +83,7 @@ void TextEdit::setText(const std::string& text) scroll.setRange(ran); scroll.setMaximum(preprocessedtext.size()); - repaintEvent(nullptr); + redraw(); textChangedNotifier(); } @@ -190,7 +190,7 @@ void TextEdit::repaintEvent(RepaintEvent* repaintEvent) void TextEdit::scrolled(int value) { (void)value; - repaintEvent(nullptr); + redraw(); } } // GUI:: |