11#if QT_CONFIG(accessibility)
12#include <QtQuick/private/qquickaccessibleattached_p.h>
27 qCDebug(lcPopupItem).nospace() <<
"implicitWidthChanged called on " << q_func() <<
"; new implicitWidth is " <<
implicitWidth;
34 qCDebug(lcPopupItem).nospace() <<
"implicitHeightChanged called on " << q_func() <<
"; new implicitHeight is " <<
implicitHeight;
96#if QT_CONFIG(quicktemplates2_multitouch)
103 connect(popup, &QQuickPopup::paletteChanged,
this, &QQuickItem::paletteChanged);
104 connect(popup, &QQuickPopup::paletteCreated,
this, &QQuickItem::paletteCreated);
106#if QT_CONFIG(quicktemplates2_hover)
153 return d->popup->childMouseEventFilter(
child,
event);
159 d->popup->focusInEvent(
event);
165 d->popup->focusOutEvent(
event);
171 d->popup->keyPressEvent(
event);
177 d->popup->keyReleaseEvent(
event);
183 d->popup->mousePressEvent(
event);
189 d->popup->mouseMoveEvent(
event);
195 d->popup->mouseReleaseEvent(
event);
201 d->popup->mouseDoubleClickEvent(
event);
207 d->popup->mouseUngrabEvent();
210#if QT_CONFIG(quicktemplates2_multitouch)
214 d->popup->touchEvent(
event);
220 d->popup->touchUngrabEvent();
224#if QT_CONFIG(wheelevent)
225void QQuickPopupItem::wheelEvent(QWheelEvent *
event)
228 d->popup->wheelEvent(
event);
236 d->popup->contentItemChange(newItem, oldItem);
242 qCDebug(lcPopupItem) <<
"contentSizeChange called on" <<
this <<
"newSize" << newSize <<
"oldSize" << oldSize;
244 d->popup->contentSizeChange(newSize, oldSize);
251 d->popup->fontChange(newFont, oldFont);
257 qCDebug(lcPopupItem) <<
"geometryChange called on" <<
this <<
"newGeometry" << newGeometry <<
"oldGeometry" << oldGeometry;
259 d->popup->geometryChange(newGeometry, oldGeometry);
266 d->popup->localeChange(newLocale, oldLocale);
272 emit d->popup->mirroredChanged();
279 d->popup->itemChange(change,
data);
286 d->popup->paddingChange(newPadding, oldPadding);
298 emit d->popup->enabledChanged();
304 return d->popup->defaultFont();
307#if QT_CONFIG(accessibility)
308QAccessible::Role QQuickPopupItem::accessibleRole()
const
311 return d->popup->effectiveAccessibleRole();
314void QQuickPopupItem::accessibilityActiveChanged(
bool active)
320 const QString oldPopupName = popupAccessibleAttached ? popupAccessibleAttached->name() :
QString();
321 const bool wasNameExplicitlySetOnPopup = popupAccessibleAttached && popupAccessibleAttached->wasNameExplicitlySet();
323 QQuickPage::accessibilityActiveChanged(active);
326 const QString ourName = accessibleAttached ? accessibleAttached->name() :
QString();
327 if (wasNameExplicitlySetOnPopup && accessibleAttached && ourName != oldPopupName) {
334 accessibleAttached->setName(oldPopupName);
339 d->popup->accessibilityActiveChanged(active);
345#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
virtual bool providesPalette() const
virtual QQuickPalette * palette() const
virtual void resetPalette()
QPalette parentPalette(const QPalette &fallbackPalette) const override
virtual void setPalette(QQuickPalette *p)
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)