summaryrefslogtreecommitdiff
path: root/dggui/tabbutton.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-01-08 12:43:07 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2022-01-22 23:15:29 +0100
commit414606b64aa6c6cf3209861b81a92a6af873937f (patch)
tree408992e785dde59748aa2f94bd8666f190575567 /dggui/tabbutton.cc
parent235ad6fbbce2e0ae9e06db960a5ba3b099936ace (diff)
Make UI events const refs and celan up redundant use of virtual with override.event_cleanup
Diffstat (limited to 'dggui/tabbutton.cc')
-rw-r--r--dggui/tabbutton.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dggui/tabbutton.cc b/dggui/tabbutton.cc
index a2b0549..c681131 100644
--- a/dggui/tabbutton.cc
+++ b/dggui/tabbutton.cc
@@ -90,7 +90,7 @@ TabID TabButton::getID() const
return tab_id;
}
-void TabButton::repaintEvent(RepaintEvent* e)
+void TabButton::repaintEvent(const RepaintEvent& e)
{
Painter p(*this);
@@ -119,9 +119,9 @@ void TabButton::repaintEvent(RepaintEvent* e)
p.drawText(x, y, font, text, true);
}
-void TabButton::scrollEvent(ScrollEvent* scroll_event)
+void TabButton::scrollEvent(const ScrollEvent& scroll_event)
{
- scrollNotifier(scroll_event->delta);
+ scrollNotifier(scroll_event.delta);
}
void TabButton::clickHandler()