summaryrefslogtreecommitdiff
path: root/plugingui/tabbutton.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-30 10:30:47 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-30 10:30:47 +0200
commit8fe6d2ec950ed1ebdedd776bab125dff90e5a20f (patch)
tree08a27b00831425367c1831269008feac14b97028 /plugingui/tabbutton.cc
parentd1e803d4be4cadc3e1204cbd096ae3bbe57c7a95 (diff)
Add support for rotating the tabs using the scroll-wheel.
Diffstat (limited to 'plugingui/tabbutton.cc')
-rw-r--r--plugingui/tabbutton.cc5
1 files changed, 5 insertions, 0 deletions
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);