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/combobox.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui/combobox.cc') diff --git a/plugingui/combobox.cc b/plugingui/combobox.cc index ffbde88..82fc6d1 100644 --- a/plugingui/combobox.cc +++ b/plugingui/combobox.cc @@ -65,13 +65,13 @@ void ComboBox::addItem(std::string name, std::string value) void ComboBox::clear() { listbox.clear(); - repaintEvent(nullptr); + redraw(); } bool ComboBox::selectItem(int index) { listbox.selectItem(index); - repaintEvent(nullptr); + redraw(); return true; } @@ -143,7 +143,7 @@ void ComboBox::scrollEvent(ScrollEvent* scrollEvent) { scroll_offset = (items.size() - 1); } - repaintEvent(nullptr); + redraw(); */ } @@ -203,7 +203,7 @@ void ComboBox::keyEvent(KeyEvent* keyEvent) break; } - repaintEvent(nullptr); + redraw(); */ } -- cgit v1.2.3