11#include <QtCore/qloggingcategory.h>
12#include <QtGui/qguiapplication.h>
13#include <QtQuick/qquickrendercontrol.h>
27 if (qobject_cast<QQuickToolTip *>(popup))
29 if (popup->isModal() || popup->closePolicy() & QQuickPopup::CloseOnEscape) {
30 qCDebug(lcContextMatcher) << popup <<
"is modal or has a CloseOnEscape policy;"
31 <<
"if the following are both true," <<
item <<
"will be blocked by it:"
47 while (
obj && !
obj->isWindowType()) {
52 }
else if (
QQuickPopup *popup = qobject_cast<QQuickPopup *>(
obj)) {
54 item = popup->popupItem();
61 if (
auto *
menu = qobject_cast<QQuickMenu *>(popup)) {
63 while (!
obj && parentMenu)
64 obj = parentMenu->window();
QGraphicsWidget * window() const
bool isAncestorOf(const QGraphicsItem *child) const
Returns true if this item is an ancestor of child (i.e., if this item is child's parent,...
static QWindow * focusWindow()
Returns the QWindow that receives events tied to focus, such as key events.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QList< QQuickPopup * > stackingOrderPopups() const
A window overlay for popups.
static QQuickOverlayPrivate * get(QQuickOverlay *overlay)
static QQuickOverlay * overlay(QQuickWindow *window)
static QWindow * renderWindowFor(QQuickWindow *win, QPoint *offset=nullptr)
Returns the real window that win is being rendered to, if any.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
static QT_BEGIN_NAMESPACE bool isBlockedByPopup(QQuickItem *item)
static bool matcher(QObject *object, Qt::ShortcutContext context)