summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
commitcec1d9ea562e3d52c98f1219db5e186943f2f0d6 (patch)
tree3a66ff06ef16cce96e215644032e6c9fac2cbe8a /plugingui/lineedit.cc
parentdc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff)
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/lineedit.cc')
-rw-r--r--plugingui/lineedit.cc6
1 files changed, 3 insertions, 3 deletions
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)