9#include <QtCore/qjnienvironment.h>
10#include <QtCore/qjniobject.h>
32 m_menuHash.
insert(m_nextMenuId++, menuItem);
38 PlatformMenuItemsType::iterator
it = std::find(m_menuItems.
begin(),
41 if (
it != m_menuItems.
end())
47 while (
it != m_menuHash.
end()) {
48 if (
it.value() == menuItem) {
51 maxId =
qMax(maxId,
it.key());
56 m_nextMenuId = maxId + 1;
62 PlatformMenuItemsType::iterator
it;
64 if ((*it)->tag() == menuItem->
tag())
68 if (
it != m_menuItems.
end())
109 m_isVisible = visible;
128 if (menuItem->tag() ==
tag)
165 return &m_menuItemsMutex;
iterator begin()
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash.
const_iterator constEnd() const noexcept
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the ...
const_iterator constBegin() const noexcept
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash.
iterator erase(const_iterator it)
T value(const Key &key) const noexcept
iterator end() noexcept
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last ...
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
The QIcon class provides scalable icons in different modes and states.
qsizetype size() const noexcept
iterator erase(const_iterator begin, const_iterator end)
iterator insert(qsizetype i, parameter_type t)
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QSet< QString >::iterator it
Combined button and popup list for selecting options.
void syncMenu(QAndroidPlatformMenu *)
void androidPlatformMenuDestroyed(QAndroidPlatformMenu *menu)
void showContextMenu(QAndroidPlatformMenu *menu, const QRect &anchorRect, JNIEnv *env)
AudioChannelLayoutTag tag
constexpr const T & qMax(const T &a, const T &b)
GLenum GLenum GLsizei const GLuint GLboolean enabled
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)