1 /**************************************************************************** 2 ** 3 ** Copyright (C) 1992-2006 Trolltech AS. All rights reserved. 4 ** 5 ** This file is part of the QtGui module of the Qt Toolkit. 6 ** 7 ** This file may be used under the terms of the GNU General Public 8 ** License version 2.0 as published by the Free Software Foundation 9 ** and appearing in the file LICENSE.GPL included in the packaging of 10 ** this file. Please review the following information to ensure GNU 11 ** General Public Licensing requirements will be met: 12 ** http://www.trolltech.com/products/qt/opensource.html 13 ** 14 ** If you are unsure which license is appropriate for your use, please 15 ** review the following information: 16 ** http://www.trolltech.com/products/qt/licensing.html or contact the 17 ** sales department at sales@trolltech.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 QEFFECTS_P_H 25 #define QEFFECTS_P_H 26 27 // 28 // W A R N I N G 29 // ------------- 30 // 31 // This file is not part of the Qt API. It exists for the convenience 32 // of qeffects.cpp, qcombobox.cpp, qpopupmenu.cpp and qtooltip.cpp. 33 // This header file may change from version to version without notice, 34 // or even be removed. 35 // 36 // We mean it. 37 // 38 39 #include "QtCore/qnamespace.h" 40 41 #ifndef QT_NO_EFFECTS 42 43 class QWidget; 44 45 struct QEffects 46 { 47 enum Direction { 48 LeftScroll = 0x0001, 49 RightScroll = 0x0002, 50 UpScroll = 0x0004, 51 DownScroll = 0x0008 52 }; 53 54 typedef uint DirFlags; 55 }; 56 57 extern void Q_GUI_EXPORT qScrollEffect(QWidget*, QEffects::DirFlags dir = QEffects::DownScroll, int time = -1); 58 extern void Q_GUI_EXPORT qFadeEffect(QWidget*, int time = -1); 59 60 #endif // QT_NO_EFFECTS 61 62 #endif // QEFFECTS_P_H 63