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.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugingui/tabbutton.h') diff --git a/plugingui/tabbutton.h b/plugingui/tabbutton.h index 1c4d84b..29e6e05 100644 --- a/plugingui/tabbutton.h +++ b/plugingui/tabbutton.h @@ -35,6 +35,8 @@ namespace GUI { +class ScrollEvent; + class TabButton : public ButtonBase { @@ -48,10 +50,12 @@ public: void setActive(bool active); Notifier switchTabNotifier; + Notifier scrollNotifier; // float delta protected: // From Widget: virtual void repaintEvent(RepaintEvent* e) override; + virtual void scrollEvent(ScrollEvent* scroll_event) override; private: void clickHandler(); -- cgit v1.2.3