diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-30 10:30:47 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-30 10:30:47 +0200 |
commit | 8fe6d2ec950ed1ebdedd776bab125dff90e5a20f (patch) | |
tree | 08a27b00831425367c1831269008feac14b97028 /plugingui/tabbutton.h | |
parent | d1e803d4be4cadc3e1204cbd096ae3bbe57c7a95 (diff) |
Add support for rotating the tabs using the scroll-wheel.
Diffstat (limited to 'plugingui/tabbutton.h')
-rw-r--r-- | plugingui/tabbutton.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<Widget*> switchTabNotifier; + Notifier<float> scrollNotifier; // float delta protected: // From Widget: virtual void repaintEvent(RepaintEvent* e) override; + virtual void scrollEvent(ScrollEvent* scroll_event) override; private: void clickHandler(); |