diff options
Diffstat (limited to 'plugingui/listboxbasic.cc')
-rw-r--r-- | plugingui/listboxbasic.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc index f0699c7..df7877d 100644 --- a/plugingui/listboxbasic.cc +++ b/plugingui/listboxbasic.cc @@ -144,6 +144,11 @@ std::string GUI::ListBoxBasic::selectedValue() return items[selected].value; } +void GUI::ListBoxBasic::clearSelectedValue() +{ + setSelection(-1); +} + void GUI::ListBoxBasic::registerClickHandler(void (*handler)(void *), void *ptr) { this->clk_handler = handler; |