From cec1d9ea562e3d52c98f1219db5e186943f2f0d6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 12 Feb 2017 11:07:22 +0100 Subject: Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling. --- plugingui/lineedit.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugingui/lineedit.cc') diff --git a/plugingui/lineedit.cc b/plugingui/lineedit.cc index c213041..7a8bb53 100644 --- a/plugingui/lineedit.cc +++ b/plugingui/lineedit.cc @@ -61,7 +61,7 @@ void LineEdit::setText(const std::string& text) visibleText = _text; offsetPos = 0; - repaintEvent(nullptr); + redraw(); textChanged(); } @@ -94,7 +94,7 @@ void LineEdit::buttonEvent(ButtonEvent *buttonEvent) break; } } - repaintEvent(nullptr); + redraw(); } } @@ -189,7 +189,7 @@ void LineEdit::keyEvent(KeyEvent *keyEvent) break; } - repaintEvent(nullptr); + redraw(); } if(change) -- cgit v1.2.3