summaryrefslogtreecommitdiff
path: root/plugingui/combobox.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/combobox.cc
parentdc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff)
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/combobox.cc')
-rw-r--r--plugingui/combobox.cc8
1 files changed, 4 insertions, 4 deletions
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();
*/
}