46 emit q->menuBarChanged();
56 const bool wasTouchPress =
touchId != -1;
68 const bool wasTouchPress =
touchId != -1;
135 menu->setParentItem(
this);
136 menu->setClosePolicy(QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutsideParent | QQuickPopup::CloseOnReleaseOutsideParent);
156 return d->highlighted;
171#if QT_CONFIG(shortcut)
175 if (shortcutEvent->shortcutId() ==
d->shortcutId) {
190 d->setPressPoint(
d->centerPressPoint());
201 if (
d->pressed &&
d->acceptKeyClick(
static_cast<Qt::Key>(
event->key()))) {
218 d->menu->setY(newGeometry.
height());
226#if QT_CONFIG(accessibility)
227QAccessible::Role QQuickMenuBarItem::accessibleRole()
const
229 return QAccessible::MenuBar;
235#include "moc_qquickmenubaritem_p.cpp"
The QKeyEvent class describes a key event.
static constexpr Policy Fixed
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
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.
void setFocusPolicy(Qt::FocusPolicy policy)
Sets the focus policy of this item to policy.
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]