Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickpopup_p_p.h>
Public Types | |
enum | TransitionState { NoTransition , EnterTransition , ExitTransition } |
Public Types inherited from QObjectPrivate | |
typedef void(*) | StaticMetaCallFunction(QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions | |
static QQuickPopupPrivate * | get (QQuickPopup *popup) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes | |
static const QQuickPopup::ClosePolicy | DefaultClosePolicy = QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutside |
Friends | |
class | QQuickPopupTransitionManager |
Additional Inherited Members | |
Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickPopup, QQuickPopupPrivate > | |
void | setCurrentColorGroup () |
Definition at line 56 of file qquickpopup_p_p.h.
Enumerator | |
---|---|
NoTransition | |
EnterTransition | |
ExitTransition |
Definition at line 140 of file qquickpopup_p_p.h.
QQuickPopupPrivate::QQuickPopupPrivate | ( | ) |
Definition at line 492 of file qquickpopup.cpp.
void QQuickPopupPrivate::adjustPopupItemParentAndWindow | ( | ) |
Definition at line 1081 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate, and QQuickMenuPrivate.
Definition at line 565 of file qquickpopup.cpp.
void QQuickPopupPrivate::closeOrReject | ( | ) |
Definition at line 511 of file qquickpopup.cpp.
bool QQuickPopupPrivate::contains | ( | const QPointF & | scenePos | ) | const |
Definition at line 545 of file qquickpopup.cpp.
QQmlListProperty< QQuickItem > QQuickPopupPrivate::contentChildren | ( | ) |
\qmlproperty list<Item> QtQuick.Controls::Popup::contentChildren
This property holds the list of content children.
The list contains all items that have been declared in QML as children of the popup.
contentData
, contentChildren
does not include non-visual QML objects.Definition at line 2273 of file qquickpopup.cpp.
QQmlListProperty< QObject > QQuickPopupPrivate::contentData | ( | ) |
\qmlproperty list<QtObject> QtQuick.Controls::Popup::contentData \qmldefault
This property holds the list of content data.
The list contains all objects that have been declared in QML as children of the popup.
contentChildren
, contentData
does include non-visual QML objects.Definition at line 2248 of file qquickpopup.cpp.
QQuickItem * QQuickPopupPrivate::createDimmer | ( | QQmlComponent * | component, |
QQuickPopup * | popup, | ||
QQuickItem * | parent ) const |
Definition at line 1138 of file qquickpopup.cpp.
void QQuickPopupPrivate::createOverlay | ( | ) |
Definition at line 1181 of file qquickpopup.cpp.
|
overridevirtual |
The default palette for this component.
Reimplemented from QQuickPaletteProviderPrivateBase< QQuickPopup, QQuickPopupPrivate >.
Reimplemented in QQuickToolTipPrivate, and QQuickToolTipPrivate.
Definition at line 1052 of file qquickpopup.cpp.
void QQuickPopupPrivate::destroyDimmer | ( | ) |
Definition at line 1213 of file qquickpopup.cpp.
|
virtual |
Definition at line 817 of file qquickpopup.cpp.
|
virtual |
Definition at line 826 of file qquickpopup.cpp.
|
inlinestatic |
Definition at line 66 of file qquickpopup_p_p.h.
QQuickPopupAnchors * QQuickPopupPrivate::getAnchors | ( | ) |
\since QtQuick.Controls 2.5 (Qt 5.12) \qmlproperty Item QtQuick.Controls::Popup::anchors.centerIn Anchors provide a way to position an item by specifying its relationship with other items. A common use case is to center a popup within its parent. One way to do this is with the \l[QtQuick]{Item::}{x} and \l[QtQuick]{Item::}{y} properties. Anchors offer a more convenient approach: \qml Pane {
...
Popup { anchors.centerIn: parent } } \endqml It is also possible to center the popup in the window by using \l Overlay: \snippet qtquickcontrols-popup.qml centerIn This makes it easy to center a popup in the window from any component. \note Popups can only be centered within their immediate parent or the window overlay; trying to center in other items will produce a warning. \sa {Popup Positioning}, {Item::}{anchors}, {Using Qt Quick Controls types in property declarations}
Definition at line 993 of file qquickpopup.cpp.
QMarginsF QQuickPopupPrivate::getMargins | ( | ) | const |
Definition at line 902 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate, and QQuickMenuPrivate.
Definition at line 1001 of file qquickpopup.cpp.
bool QQuickPopupPrivate::handleHoverEvent | ( | QQuickItem * | item, |
QHoverEvent * | event ) |
Definition at line 645 of file qquickpopup.cpp.
bool QQuickPopupPrivate::handleMouseEvent | ( | QQuickItem * | item, |
QMouseEvent * | event ) |
Definition at line 631 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate.
Definition at line 600 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate, and QQuickMenuPrivate.
Definition at line 581 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate.
Definition at line 606 of file qquickpopup.cpp.
|
inlinevirtual |
Reimplemented in QQuickMenuPrivate.
Definition at line 88 of file qquickpopup_p_p.h.
|
virtual |
Reimplemented in QQuickDrawerPrivate.
Definition at line 618 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate.
Definition at line 1250 of file qquickpopup.cpp.
void QQuickPopupPrivate::init | ( | ) |
Definition at line 497 of file qquickpopup.cpp.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 1040 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickToolTipPrivate, and QQuickToolTipPrivate.
Definition at line 884 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDialogPrivate, QQuickToolTipPrivate, and QQuickToolTipPrivate.
Definition at line 897 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate, and QQuickMenuPrivate.
Definition at line 753 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate, and QQuickMenuPrivate.
Definition at line 786 of file qquickpopup.cpp.
void QQuickPopupPrivate::reposition | ( | ) |
Definition at line 1047 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate.
Definition at line 1257 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate, and QQuickMenuPrivate.
Definition at line 1057 of file qquickpopup.cpp.
Definition at line 947 of file qquickpopup.cpp.
Definition at line 692 of file qquickpopup.cpp.
Definition at line 921 of file qquickpopup.cpp.
Definition at line 934 of file qquickpopup.cpp.
Definition at line 908 of file qquickpopup.cpp.
void QQuickPopupPrivate::setWindow | ( | QQuickWindow * | window | ) |
Definition at line 1009 of file qquickpopup.cpp.
|
virtual |
Reimplemented in QQuickDrawerPrivate.
Definition at line 1243 of file qquickpopup.cpp.
void QQuickPopupPrivate::toggleOverlay | ( | ) |
Definition at line 1227 of file qquickpopup.cpp.
bool QQuickPopupPrivate::tryClose | ( | const QPointF & | pos, |
QQuickPopup::ClosePolicy | flags ) |
Definition at line 523 of file qquickpopup.cpp.
Definition at line 1234 of file qquickpopup.cpp.
bool QQuickPopupPrivate::usePopupWindow | ( | ) | const |
Definition at line 1076 of file qquickpopup.cpp.
QMarginsF QQuickPopupPrivate::windowInsets | ( | ) | const |
Definition at line 657 of file qquickpopup.cpp.
QPointF QQuickPopupPrivate::windowInsetsTopLeft | ( | ) | const |
Definition at line 686 of file qquickpopup.cpp.
|
friend |
Definition at line 204 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::allowHorizontalFlip = false |
Definition at line 161 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::allowHorizontalMove = true |
Definition at line 163 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::allowHorizontalResize = true |
Definition at line 165 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::allowVerticalFlip = false |
Definition at line 160 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::allowVerticalMove = true |
Definition at line 162 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::allowVerticalResize = true |
Definition at line 164 of file qquickpopup_p_p.h.
QQuickPopupAnchors* QQuickPopupPrivate::anchors = nullptr |
Definition at line 197 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::bottomMargin = 0 |
Definition at line 182 of file qquickpopup_p_p.h.
QQuickPopup::ClosePolicy QQuickPopupPrivate::closePolicy = DefaultClosePolicy |
Definition at line 185 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::complete = true |
Definition at line 151 of file qquickpopup_p_p.h.
|
static |
Definition at line 144 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::dim = false |
Definition at line 148 of file qquickpopup_p_p.h.
QQuickItem* QQuickPopupPrivate::dimmer = nullptr |
Definition at line 187 of file qquickpopup_p_p.h.
QPointF QQuickPopupPrivate::effectivePos |
Definition at line 177 of file qquickpopup_p_p.h.
QQuickTransition* QQuickPopupPrivate::enter = nullptr |
Definition at line 189 of file qquickpopup_p_p.h.
QList<QQuickStateAction> QQuickPopupPrivate::enterActions |
Definition at line 194 of file qquickpopup_p_p.h.
QQuickTransition* QQuickPopupPrivate::exit = nullptr |
Definition at line 190 of file qquickpopup_p_p.h.
QList<QQuickStateAction> QQuickPopupPrivate::exitActions |
Definition at line 195 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::explicitDimmerOpacity = 0 |
Definition at line 198 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::focus = false |
Definition at line 146 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hadActiveFocusBeforeExitTransition = false |
Definition at line 166 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasBottomMargin = false |
Definition at line 158 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasClosePolicy = false |
Definition at line 168 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasDim = false |
Definition at line 149 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasHeight = false |
Definition at line 154 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasLeftMargin = false |
Definition at line 156 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasRightMargin = false |
Definition at line 157 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasTopMargin = false |
Definition at line 155 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasWidth = false |
Definition at line 153 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::hasZ = false |
Definition at line 159 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::inDestructor = false |
Definition at line 171 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::interactive = true |
Definition at line 167 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::leftMargin = 0 |
Definition at line 180 of file qquickpopup_p_p.h.
QQuickPopup::PopupType QQuickPopupPrivate::m_popupType = QQuickPopup::Item |
Definition at line 202 of file qquickpopup_p_p.h.
QString QQuickPopupPrivate::m_title |
Definition at line 201 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::margins = -1 |
Definition at line 178 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::modal = false |
Definition at line 147 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::outsideParentPressed = false |
Definition at line 170 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::outsidePressed = false |
Definition at line 169 of file qquickpopup_p_p.h.
QQuickItem* QQuickPopupPrivate::parentItem = nullptr |
Definition at line 186 of file qquickpopup_p_p.h.
QQuickPopupItem* QQuickPopupPrivate::popupItem = nullptr |
Definition at line 191 of file qquickpopup_p_p.h.
QQuickPopupWindow* QQuickPopupPrivate::popupWindow = nullptr |
Definition at line 192 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::popupWindowDirty = false |
Definition at line 173 of file qquickpopup_p_p.h.
QQuickPopupPositioner* QQuickPopupPrivate::positioner = nullptr |
Definition at line 193 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::positioning = false |
Definition at line 152 of file qquickpopup_p_p.h.
QPointF QQuickPopupPrivate::pressPoint |
Definition at line 183 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::prevOpacity = 0 |
Definition at line 199 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::prevScale = 0 |
Definition at line 200 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::relaxEdgeConstraint = false |
Definition at line 172 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::rightMargin = 0 |
Definition at line 181 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::topMargin = 0 |
Definition at line 179 of file qquickpopup_p_p.h.
int QQuickPopupPrivate::touchId = -1 |
Definition at line 174 of file qquickpopup_p_p.h.
QQuickPopupTransitionManager QQuickPopupPrivate::transitionManager |
Definition at line 196 of file qquickpopup_p_p.h.
TransitionState QQuickPopupPrivate::transitionState = NoTransition |
Definition at line 184 of file qquickpopup_p_p.h.
bool QQuickPopupPrivate::visible = false |
Definition at line 150 of file qquickpopup_p_p.h.
QPointer<QQuickWindow> QQuickPopupPrivate::window |
Definition at line 188 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::x = 0 |
Definition at line 175 of file qquickpopup_p_p.h.
qreal QQuickPopupPrivate::y = 0 |
Definition at line 176 of file qquickpopup_p_p.h.