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
qwidgetanimator_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
QWIDGET_ANIMATOR_P_H
6
#
define
QWIDGET_ANIMATOR_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 purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtWidgets
/
private
/
qtwidgetsglobal_p
.
h
>
20
#
include
<
qobject
.
h
>
21
#
include
<
qhash
.
h
>
22
#
include
<
qpointer
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QWidget
;
27
class
QMainWindowLayout;
28
class
QPropertyAnimation;
29
class
QRect;
30
31
class
QWidgetAnimator
:
public
QObject
32
{
33
Q_OBJECT
34
public
:
35
enum
class
AnimationRule
{
36
Run
,
37
Stop
,
38
};
39
Q_ENUM(AnimationRule)
40
41
QWidgetAnimator
(
QMainWindowLayout
*
layout
);
42
void
animate
(
QWidget
*widget,
const
QRect &final_geometry, AnimationRule rule);
43
bool
animating
()
const
;
44
45
void
abort
(
QWidget
*widget);
46
47
private
:
48
typedef
QHash
<
QWidget
*,
QPointer
<QPropertyAnimation> > AnimationMap;
49
AnimationMap m_animation_map;
50
#
if
QT_CONFIG
(
mainwindow
)
51
QMainWindowLayout
*
m_mainWindowLayout
;
52
#
endif
53
};
54
55
QT_END_NAMESPACE
56
57
#
endif
// QWIDGET_ANIMATOR_P_H
QHash
\inmodule QtCore
Definition
qhash.h:843
QMainWindowPrivate
Definition
qmainwindow.cpp:42
QMainWindowPrivate::toolButtonStyle
Qt::ToolButtonStyle toolButtonStyle
Definition
qmainwindow.cpp:54
QMainWindowPrivate::iconSize
QSize iconSize
Definition
qmainwindow.cpp:52
QMainWindowPrivate::explicitIconSize
bool explicitIconSize
Definition
qmainwindow.cpp:53
QMainWindowPrivate::mainWindowLayout
static QMainWindowLayout * mainWindowLayout(const QMainWindow *mainWindow)
Definition
qmainwindow.cpp:60
QMainWindowPrivate::init
void init()
Definition
qmainwindow.cpp:71
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
QPointer
Definition
qpointer.h:20
QWidgetAnimator
Definition
qwidgetanimator_p.h:32
QWidgetAnimator::animate
void animate(QWidget *widget, const QRect &final_geometry, AnimationRule rule)
Definition
qwidgetanimator.cpp:40
QWidgetAnimator::abort
void abort(QWidget *widget)
Definition
qwidgetanimator.cpp:26
QWidgetAnimator::animating
bool animating() const
Definition
qwidgetanimator.cpp:78
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qt_mainwindow_layout
QMainWindowLayout * qt_mainwindow_layout(const QMainWindow *mainWindow)
Definition
qmainwindow.cpp:66
qtbase
src
widgets
widgets
qwidgetanimator_p.h
Generated on
for Qt by
1.16.1