11#if QT_CONFIG(accessibility)
12#include <QtQuick/private/qquickaccessibleattached_p.h>
27 return popupItem->d_func();
32 qCDebug(lcPopupItem).nospace() <<
"implicitWidthChanged called on " << q_func() <<
"; new implicitWidth is " <<
implicitWidth;
39 qCDebug(lcPopupItem).nospace() <<
"implicitHeightChanged called on " << q_func() <<
"; new implicitHeight is " <<
implicitHeight;
101#if QT_CONFIG(quicktemplates2_multitouch)
108 connect(popup, &QQuickPopup::paletteChanged,
this, &QQuickItem::paletteChanged);
109 connect(popup, &QQuickPopup::paletteCreated,
this, &QQuickItem::paletteCreated);
111#if QT_CONFIG(quicktemplates2_hover)
158 return d->popup->childMouseEventFilter(
child,
event);
164 d->popup->focusInEvent(
event);
170 d->popup->focusOutEvent(
event);
176 d->popup->keyPressEvent(
event);
182 d->popup->keyReleaseEvent(
event);
188 d->popup->mousePressEvent(
event);
194 d->popup->mouseMoveEvent(
event);
200 d->popup->mouseReleaseEvent(
event);
206 d->popup->mouseDoubleClickEvent(
event);
212 d->popup->mouseUngrabEvent();
215#if QT_CONFIG(quicktemplates2_multitouch)
219 d->popup->touchEvent(
event);
225 d->popup->touchUngrabEvent();
229#if QT_CONFIG(wheelevent)
230void QQuickPopupItem::wheelEvent(QWheelEvent *
event)
233 d->popup->wheelEvent(
event);
241 d->popup->contentItemChange(newItem, oldItem);
247 qCDebug(lcPopupItem) <<
"contentSizeChange called on" <<
this <<
"newSize" << newSize <<
"oldSize" << oldSize;
249 d->popup->contentSizeChange(newSize, oldSize);
256 d->popup->fontChange(newFont, oldFont);
262 qCDebug(lcPopupItem) <<
"geometryChange called on" <<
this <<
"newGeometry" << newGeometry <<
"oldGeometry" << oldGeometry;
264 d->popup->geometryChange(newGeometry, oldGeometry);
271 d->popup->localeChange(newLocale, oldLocale);
277 emit d->popup->mirroredChanged();
284 d->popup->itemChange(change,
data);
291 d->popup->paddingChange(newPadding, oldPadding);
303 emit d->popup->enabledChanged();
309 return d->popup->defaultFont();
312#if QT_CONFIG(accessibility)
313QAccessible::Role QQuickPopupItem::accessibleRole()
const
316 return d->popup->effectiveAccessibleRole();
319void QQuickPopupItem::accessibilityActiveChanged(
bool active)
325 const QString oldPopupName = popupAccessibleAttached ? popupAccessibleAttached->name() :
QString();
326 const bool wasNameExplicitlySetOnPopup = popupAccessibleAttached && popupAccessibleAttached->wasNameExplicitlySet();
328 QQuickPage::accessibilityActiveChanged(active);
331 const QString ourName = accessibleAttached ? accessibleAttached->name() :
QString();
332 if (wasNameExplicitlySetOnPopup && accessibleAttached && ourName != oldPopupName) {
339 accessibleAttached->setName(oldPopupName);
344 d->popup->accessibilityActiveChanged(active);
350#include "moc_qquickpopupitem_p_p.cpp"
The QFocusEvent class contains event parameters for widget focus events.
The QKeyEvent class describes a key event.
The QPalette class contains color groups for each widget state.
QQuickDeferredPointer< QQuickItem > background
QQuickDeferredPointer< QQuickItem > contentItem
virtual QQuickItem * getContentItem()
void inheritFont(const QFont &font)
virtual void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
void setHoverEnabled(bool enabled)
virtual void localeChange(const QLocale &newLocale, const QLocale &oldLocale)
virtual void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
virtual void fontChange(const QFont &newFont, const QFont &oldFont)
virtual void implicitHeightChanged()
virtual void implicitWidthChanged()
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setFlag(Flag flag, bool enabled=true)
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disable...
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
void setAcceptTouchEvents(bool accept)
If enabled is true, this sets the item to accept touch events; otherwise, touch events are not accept...
void setAcceptedMouseButtons(Qt::MouseButtons buttons)
Sets the mouse buttons accepted by this item to buttons.
virtual void itemChange(ItemChange, const ItemChangeData &)
Called when change occurs for this item.
virtual void touchUngrabEvent()
This event handler can be reimplemented in a subclass to be notified when a touch ungrab event has oc...
virtual void touchEvent(QTouchEvent *event)
This event handler can be reimplemented in a subclass to receive touch events for an item.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
friend class QQuickAccessibleAttached
Contains color groups for each QML item state. \inmodule QtQuick.
virtual void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize)
static QFont font(Scope scope)
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTouchEvent class contains parameters that describe a touch event.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLdouble GLdouble GLdouble GLdouble q
static QString contentItemName()
void quickCancelDeferred(QObject *object, const QString &property)
void quickCompleteDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate)
void quickBeginDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate)
#define QStringLiteral(str)
static QString backgroundName()
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
item setCursor(Qt::IBeamCursor)
[1]
file setParent(multiPart)