Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickpopuppositioner_p_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 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
QQUICKPOPUPPOSITIONER_P_P_H
6
#
define
QQUICKPOPUPPOSITIONER_P_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
<
QtQuick
/
private
/
qquickitemchangelistener_p
.
h
>
20
#
include
<
QtQuickTemplates2
/
private
/
qtquicktemplates2global_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QQuickItem;
25
class
QQuickPopup;
26
27
class
Q_QUICKTEMPLATES2_EXPORT
QQuickPopupPositioner
:
public
QQuickItemChangeListener
28
{
29
public
:
30
explicit
QQuickPopupPositioner(QQuickPopup *popup);
31
~QQuickPopupPositioner();
32
33
QQuickPopup *popup()
const
;
34
35
QQuickItem *parentItem()
const
;
36
void
setParentItem(QQuickItem *parent);
37
38
virtual
void
reposition();
39
40
protected
:
41
void
itemGeometryChanged(QQuickItem *, QQuickGeometryChange,
const
QRectF &) override;
42
void
itemParentChanged(QQuickItem *, QQuickItem *parent) override;
43
void
itemChildRemoved(QQuickItem *, QQuickItem *child) override;
44
45
void
removeAncestorListeners(QQuickItem *item);
46
void
addAncestorListeners(QQuickItem *item);
47
48
void
repositionPopupWindow();
49
50
bool
m_positioning =
false
;
51
QQuickItem *m_parentItem =
nullptr
;
52
QQuickPopup *m_popup =
nullptr
;
53
qreal m_popupScale = 1.0;
54
};
55
56
QT_END_NAMESPACE
57
58
#
endif
// QQUICKPOPUPPOSITIONER_P_P_H
QQuickDrawerPrivate
Definition
qquickdrawer_p_p.h:25
QQuickDrawer
Definition
qquickdrawer_p.h:26
QQuickPopupPositioner
Definition
qquickpopuppositioner_p_p.h:28
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
keepGrab
static bool keepGrab(QQuickItem *item)
Definition
qquickdrawer.cpp:328
prepareTransition
static QList< QQuickStateAction > prepareTransition(QQuickDrawer *drawer, QQuickTransition *transition, qreal to)
Definition
qquickdrawer.cpp:576
openCloseVelocityThreshold
static const qreal openCloseVelocityThreshold
Definition
qquickdrawer.cpp:439
qtdeclarative
src
quicktemplates
qquickpopuppositioner_p_p.h
Generated on
for Qt by
1.18.0