Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qeffects_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QEFFECTS_P_H
6#define QEFFECTS_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of qeffects.cpp, qcombobox.cpp, qpopupmenu.cpp and qtooltip.cpp.
14// This header file may change from version to version without notice,
15// or even be removed.
16//
17// We mean it.
18//
19
20#include "QtCore/qnamespace.h"
21#include <QtWidgets/private/qtwidgetsglobal_p.h>
22
24
25QT_BEGIN_NAMESPACE
26
27class QWidget;
28
30{
31 enum Direction {
32 LeftScroll = 0x0001,
33 RightScroll = 0x0002,
34 UpScroll = 0x0004,
35 DownScroll = 0x0008
36 };
37
38 typedef uint DirFlags;
39};
40
41extern void Q_WIDGETS_EXPORT qScrollEffect(QWidget*, QEffects::DirFlags dir = QEffects::DownScroll, int time = -1);
42extern void Q_WIDGETS_EXPORT qFadeEffect(QWidget*, int time = -1);
43
44QT_END_NAMESPACE
45
46#endif // QEFFECTS_P_H
void paintEvent(QPaintEvent *e) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
Definition qeffects.cpp:100
bool eventFilter(QObject *, QEvent *) override
Filters events if this object has been installed as an event filter for the watched object.
Definition qeffects.cpp:163
void alphaBlend()
Definition qeffects.cpp:272
void closeEvent(QCloseEvent *) override
This event handler is called with the given event when Qt receives a window close request for a top-l...
Definition qeffects.cpp:204
void run(int time)
Definition qeffects.cpp:110
QPainter(QPaintDevice *)
Constructs a painter that begins painting the paint device immediately.
friend class QWidget
Definition qpainter.h:431
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
Definition qeffects.cpp:392
void run(int time)
Definition qeffects.cpp:423
void closeEvent(QCloseEvent *) override
This event handler is called with the given event when Qt receives a window close request for a top-l...
Definition qeffects.cpp:404
#define qApp
static std::unique_ptr< QRollEffect, DeleteLater > q_roll
Definition qeffects.cpp:352
void qScrollEffect(QWidget *w, QEffects::DirFlags orient, int time)
Definition qeffects.cpp:532
void qFadeEffect(QWidget *w, int time)
Definition qeffects.cpp:551
static std::unique_ptr< QAlphaWidget, DeleteLater > q_blend
Definition qeffects.cpp:71
QT_REQUIRE_CONFIG(thread)
void operator()(QObject *o) const
Definition qeffects.cpp:25
@ RightScroll
Definition qeffects_p.h:33
uint DirFlags
Definition qeffects_p.h:38