diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-01-08 12:43:07 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-01-22 23:15:29 +0100 |
commit | 414606b64aa6c6cf3209861b81a92a6af873937f (patch) | |
tree | 408992e785dde59748aa2f94bd8666f190575567 /dggui/tooltip.cc | |
parent | 235ad6fbbce2e0ae9e06db960a5ba3b099936ace (diff) |
Make UI events const refs and celan up redundant use of virtual with override.event_cleanup
Diffstat (limited to 'dggui/tooltip.cc')
-rw-r--r-- | dggui/tooltip.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dggui/tooltip.cc b/dggui/tooltip.cc index b55b45e..c143cbd 100644 --- a/dggui/tooltip.cc +++ b/dggui/tooltip.cc @@ -57,7 +57,7 @@ void Tooltip::resize(std::size_t width, std::size_t height) Widget::resize(width, height); } -void Tooltip::repaintEvent(RepaintEvent* repaintEvent) +void Tooltip::repaintEvent(const RepaintEvent& repaintEvent) { if(needs_preprocessing) { @@ -189,9 +189,9 @@ void Tooltip::show() window()->setMouseFocus(this); } -void Tooltip::buttonEvent(ButtonEvent* buttonEvent) +void Tooltip::buttonEvent(const ButtonEvent& buttonEvent) { - if(buttonEvent->direction == Direction::down) + if(buttonEvent.direction == Direction::down) { hide(); } |