diff options
author | Michele Calgaro <[email protected]> | 2013-10-19 16:27:41 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-10-19 17:02:16 +0200 |
commit | 6b1b515330edfcba9de6c7d03307cf0e8fed8ea2 (patch) | |
tree | ee3de9b9c5b68c8a470dfa120dff35081857e488 /tdeui/ktabwidget.h | |
parent | cced03e1d481e26d12b65e7929dfd650e4be571c (diff) | |
download | tdelibs-6b1b515330edfcba9de6c7d03307cf0e8fed8ea2.tar.gz tdelibs-6b1b515330edfcba9de6c7d03307cf0e8fed8ea2.zip |
Add option to control scroll tabs on mouse wheel
Diffstat (limited to 'tdeui/ktabwidget.h')
-rw-r--r-- | tdeui/ktabwidget.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tdeui/ktabwidget.h b/tdeui/ktabwidget.h index ae8f43e5d..867048965 100644 --- a/tdeui/ktabwidget.h +++ b/tdeui/ktabwidget.h @@ -16,6 +16,11 @@ along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + -------------------------------------------------------------- + Additional changes: + - 2013/10/14 Michele Calgaro: + add "scroll tabs on mouse wheel event" functionality */ #ifndef KTABWIDGET_H @@ -44,14 +49,17 @@ class TDEUI_EXPORT KTabWidget : public TQTabWidget public: KTabWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 ); + /** * Destructor. */ virtual ~KTabWidget(); + /*! Set the tab of the given widget to \a color. */ void setTabColor( TQWidget *, const TQColor& color ); + /*! Returns the tab color for the given widget. */ @@ -103,6 +111,13 @@ public: bool isTabBarHidden() const; /*! + Enable/disable "scroll tabs on mouse wheel event" functionality + \a mouseWheelScroll true -> scroll enabled, false -> scroll disabled + @since 14.0 + */ + void setMouseWheelScroll(bool mouseWheelScroll); + + /*! Reimplemented for internal reasons. */ virtual void insertTab( TQWidget *, const TQString &, int index = -1 ); |