]> git.sur5r.net Git - minitube/blob - src/flickcharm.h
Imported Upstream version 1.0
[minitube] / src / flickcharm.h
1 /****************************************************************************
2 **
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: Qt Software Information (qt-info@nokia.com)
5 **
6 ** This file is part of the Graphics Dojo project on Qt Labs.
7 **
8 ** This file may be used under the terms of the GNU General Public
9 ** License version 2.0 or 3.0 as published by the Free Software Foundation
10 ** and appearing in the file LICENSE.GPL included in the packaging of
11 ** this file.  Please review the following information to ensure GNU
12 ** General Public Licensing requirements will be met:
13 ** http://www.fsf.org/licensing/licenses/info/GPLv2.html and
14 ** http://www.gnu.org/copyleft/gpl.html.
15 **
16 ** If you are unsure which license is appropriate for your use, please
17 ** contact the sales department at qt-sales@nokia.com.
18 **
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 **
22 ****************************************************************************/
23
24 #ifndef FLICKCHARM_H
25 #define FLICKCHARM_H
26
27 #include <QObject>
28
29 class FlickCharmPrivate;
30 class QWidget;
31
32 class FlickCharm: public QObject
33 {
34     Q_OBJECT
35 public:
36     FlickCharm(QObject *parent = 0);
37     ~FlickCharm();
38     void activateOn(QWidget *widget);
39     void deactivateFrom(QWidget *widget);
40     bool eventFilter(QObject *object, QEvent *event);
41
42 protected:
43     void timerEvent(QTimerEvent *event);
44
45 private:
46     void scrollBarShow(QWidget *widget, bool show);
47     void hideScrollBars(QWidget *widget);
48     void showScrollBars(QWidget *widget);
49     FlickCharmPrivate *d;
50 };
51
52 #endif // FLICKCHARM_H