46 emit q->menuBarChanged();
56 const bool wasTouchPress =
touchId != -1;
68 const bool wasTouchPress =
touchId != -1;
134 menu->setParentItem(
this);
135 menu->setClosePolicy(QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutsideParent | QQuickPopup::CloseOnReleaseOutsideParent);
155 return d->highlighted;
170#if QT_CONFIG(shortcut)
174 if (shortcutEvent->shortcutId() ==
d->shortcutId) {
189 d->setPressPoint(
d->centerPressPoint());
200 if (
d->pressed &&
d->acceptKeyClick(
static_cast<Qt::Key>(
event->key()))) {
217 d->menu->setY(newGeometry.
height());
225#if QT_CONFIG(accessibility)
226QAccessible::Role QQuickMenuBarItem::accessibleRole()
const
228 return QAccessible::MenuBar;
234#include "moc_qquickmenubaritem_p.cpp"
The QKeyEvent class describes a key event.
virtual bool event(QEvent *event)
This virtual function receives events to an object and should return true if the event e was recogniz...
The QPalette class contains color groups for each widget state.
\inmodule QtCore\reentrant
void setFocusPolicy(Qt::FocusPolicy policy)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
virtual void keyPressEvent(QKeyEvent *event)
This event handler can be reimplemented in a subclass to receive key press events for an item.
qreal height
This property holds the height of this item.
virtual void keyReleaseEvent(QKeyEvent *event)
This event handler can be reimplemented in a subclass to receive key release events for an item.
static QPalette palette(Scope scope)
static QFont font(Scope scope)
\inmodule QtCore\reentrant
constexpr qreal height() const noexcept
Returns the height of the rectangle.
The QShortcutEvent class provides an event which is generated when the user presses a key combination...
Combined button and popup list for selecting options.
GLdouble GLdouble GLdouble GLdouble q
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
myObject disconnect()
[26]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent