From 8fe6d2ec950ed1ebdedd776bab125dff90e5a20f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 30 Apr 2017 10:30:47 +0200 Subject: Add support for rotating the tabs using the scroll-wheel. --- plugingui/tabbutton.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugingui/tabbutton.cc') diff --git a/plugingui/tabbutton.cc b/plugingui/tabbutton.cc index f46daa4..845dedb 100644 --- a/plugingui/tabbutton.cc +++ b/plugingui/tabbutton.cc @@ -106,6 +106,11 @@ void TabButton::repaintEvent(RepaintEvent* e) p.drawText(x, y, font, text, true); } +void TabButton::scrollEvent(ScrollEvent* scroll_event) +{ + scrollNotifier(scroll_event->delta); +} + void TabButton::clickHandler() { switchTabNotifier(tab_widget); -- cgit v1.2.3