1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QEFFECTS_P_H
5#define QEFFECTS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of qeffects.cpp, qcombobox.cpp, qpopupmenu.cpp and qtooltip.cpp.
13// This header file may change from version to version without notice,
14// or even be removed.
15//
16// We mean it.
17//
18
19#include "QtCore/qnamespace.h"
20#include <QtWidgets/private/qtwidgetsglobal_p.h>
21
22QT_REQUIRE_CONFIG(effects);
23
24QT_BEGIN_NAMESPACE
25
26class QWidget;
27
28struct QEffects
29{
30 enum Direction {
31 LeftScroll = 0x0001,
32 RightScroll = 0x0002,
33 UpScroll = 0x0004,
34 DownScroll = 0x0008
35 };
36
37 typedef uint DirFlags;
38};
39
40extern void Q_WIDGETS_EXPORT qScrollEffect(QWidget*, QEffects::DirFlags dir = QEffects::DownScroll, int time = -1);
41extern void Q_WIDGETS_EXPORT qFadeEffect(QWidget*, int time = -1);
42
43QT_END_NAMESPACE
44
45#endif // QEFFECTS_P_H
46

source code of qtbase/src/widgets/widgets/qeffects_p.h