Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Variables | |
static QList< QAndroidPlatformMenu * > | pendingContextMenus |
static QAndroidPlatformMenu * | visibleMenu = nullptr |
static Q_CONSTINIT QRecursiveMutex | visibleMenuMutex |
static QSet< QAndroidPlatformMenuBar * > | menuBars |
static QAndroidPlatformMenuBar * | visibleMenuBar = nullptr |
static QWindow * | activeTopLevelWindow = nullptr |
static Q_CONSTINIT QRecursiveMutex | menuBarMutex |
static jmethodID | clearMenuMethodID = 0 |
static jmethodID | addMenuItemMethodID = 0 |
static int | menuNoneValue = 0 |
static jmethodID | setHeaderTitleContextMenuMethodID = 0 |
static jmethodID | setCheckableMenuItemMethodID = 0 |
static jmethodID | setCheckedMenuItemMethodID = 0 |
static jmethodID | setEnabledMenuItemMethodID = 0 |
static jmethodID | setIconMenuItemMethodID = 0 |
static jmethodID | setVisibleMenuItemMethodID = 0 |
static JNINativeMethod | methods [] |
|
static |
Definition at line 183 of file androidjnimenu.cpp.
References addMenuItemMethodID, QString::data(), fillMenuItem(), QGraphicsItem::isEnabled(), QGraphicsItem::isVisible(), item, items, QString::length(), lock, menu, menuNoneValue, platformMenu, and removeAmpersandEscapes().
Referenced by fillContextMenu(), onCreateContextMenu(), and onPrepareOptionsMenu().
void QtAndroidMenu::addMenuBar | ( | QAndroidPlatformMenuBar * | menuBar | ) |
Definition at line 130 of file androidjnimenu.cpp.
References lock, menuBar, menuBarMutex, and menuBars.
Referenced by QAndroidPlatformMenuBar::QAndroidPlatformMenuBar().
void QtAndroidMenu::androidPlatformMenuDestroyed | ( | QAndroidPlatformMenu * | menu | ) |
Definition at line 89 of file androidjnimenu.cpp.
References lock, menu, visibleMenu, and visibleMenuMutex.
Referenced by QAndroidPlatformMenu::~QAndroidPlatformMenu().
|
static |
Definition at line 308 of file androidjnimenu.cpp.
References addAllMenuItemsToMenu(), clearMenuMethodID, lock, menu, Q_UNUSED, visibleMenu, and visibleMenuMutex.
|
static |
Definition at line 160 of file androidjnimenu.cpp.
References QtAndroid::createBitmap(), QtAndroid::createBitmapDrawable(), QIcon::Disabled, icon, QIcon::isNull(), QIcon::Normal, QIcon::On, QIcon::pixmap(), qEnvironmentVariableIntValue(), qMax(), setCheckableMenuItemMethodID, setCheckedMenuItemMethodID, setEnabledMenuItemMethodID, setIconMenuItemMethodID, and setVisibleMenuItemMethodID.
Referenced by addAllMenuItemsToMenu(), and onPrepareOptionsMenu().
void QtAndroidMenu::hideContextMenu | ( | QAndroidPlatformMenu * | menu | ) |
Definition at line 67 of file androidjnimenu.cpp.
References lock, menu, pendingContextMenus, QtAndroid::qtActivityDelegate(), visibleMenu, and visibleMenuMutex.
|
static |
Definition at line 319 of file androidjnimenu.cpp.
References QMenu::aboutToHide(), QWidget::isVisible(), item, lock, menu, pendingContextMenus, Q_UNUSED, showContextMenu(), visibleMenu, and visibleMenuMutex.
|
static |
Definition at line 345 of file androidjnimenu.cpp.
References lock, menu, pendingContextMenus, Q_UNUSED, showContextMenu(), visibleMenu, and visibleMenuMutex.
|
static |
Definition at line 291 of file androidjnimenu.cpp.
References addAllMenuItemsToMenu(), clearMenuMethodID, lock, menu, Q_UNUSED, removeAmpersandEscapes(), setHeaderTitleContextMenuMethodID, visibleMenu, and visibleMenuMutex.
|
static |
Definition at line 254 of file androidjnimenu.cpp.
References QList< T >::front(), item, lock, menu, menuBarMutex, QAndroidPlatformMenu::menuItemForId(), Q_UNUSED, showContextMenu(), QList< T >::size(), and visibleMenuBar.
|
static |
Definition at line 284 of file androidjnimenu.cpp.
|
static |
Definition at line 214 of file androidjnimenu.cpp.
References addAllMenuItemsToMenu(), addMenuItemMethodID, clearMenuMethodID, QString::data(), fillMenuItem(), QList< T >::front(), QGraphicsItem::isEnabled(), QGraphicsItem::isVisible(), item, QString::length(), lock, menu, menuBarMutex, menuNoneValue, Q_UNUSED, removeAmpersandEscapes(), QList< T >::size(), and visibleMenuBar.
void QtAndroidMenu::openOptionsMenu | ( | ) |
Definition at line 50 of file androidjnimenu.cpp.
References QtAndroid::qtActivityDelegate().
Referenced by QAndroidPlatformTheme::showPlatformMenuBar().
bool QtAndroidMenu::registerNatives | ( | QJniEnvironment & | env | ) |
Definition at line 399 of file androidjnimenu.cpp.
References addMenuItemMethodID, QtAndroid::applicationClass(), clearMenuMethodID, FIND_AND_CHECK_CLASS, GET_AND_CHECK_METHOD, GET_AND_CHECK_STATIC_FIELD, menuNoneValue, methods, setCheckableMenuItemMethodID, setCheckedMenuItemMethodID, setEnabledMenuItemMethodID, setHeaderTitleContextMenuMethodID, setIconMenuItemMethodID, and setVisibleMenuItemMethodID.
Referenced by JNI_OnLoad().
Definition at line 146 of file androidjnimenu.cpp.
References i.
Referenced by addAllMenuItemsToMenu(), onCreateContextMenu(), and onPrepareOptionsMenu().
void QtAndroidMenu::removeMenuBar | ( | QAndroidPlatformMenuBar * | menuBar | ) |
Definition at line 136 of file androidjnimenu.cpp.
References lock, menuBar, menuBarMutex, menuBars, resetMenuBar(), and visibleMenuBar.
Referenced by QAndroidPlatformMenuBar::~QAndroidPlatformMenuBar().
void QtAndroidMenu::resetMenuBar | ( | ) |
Definition at line 45 of file androidjnimenu.cpp.
References QtAndroid::qtActivityDelegate().
Referenced by removeMenuBar(), setActiveTopLevelWindow(), and setMenuBar().
Definition at line 104 of file androidjnimenu.cpp.
References activeTopLevelWindow, Qt::Desktop, Qt::Dialog, lock, menuBar, menuBarMutex, menuBars, Qt::Popup, resetMenuBar(), Qt::Sheet, visibleMenuBar, Qt::Window, and window().
Referenced by QAndroidPlatformScreen::topVisibleWindowChanged().
void QtAndroidMenu::setMenuBar | ( | QAndroidPlatformMenuBar * | menuBar, |
QWindow * | window ) |
Definition at line 96 of file androidjnimenu.cpp.
References activeTopLevelWindow, menuBar, resetMenuBar(), visibleMenuBar, and window().
Referenced by QAndroidPlatformMenuBar::handleReparent().
void QtAndroidMenu::showContextMenu | ( | QAndroidPlatformMenu * | menu, |
const QRect & | anchorRect ) |
Definition at line 55 of file androidjnimenu.cpp.
References QMenu::aboutToShow(), QRect::height(), lock, menu, pendingContextMenus, QtAndroid::qtActivityDelegate(), visibleMenu, visibleMenuMutex, QRect::width(), QRect::x(), and QRect::y().
Referenced by onContextItemSelected(), onContextMenuClosed(), onOptionsItemSelected(), and QAndroidPlatformMenu::showPopup().
void QtAndroidMenu::syncMenu | ( | QAndroidPlatformMenu * | ) |
Definition at line 79 of file androidjnimenu.cpp.
Referenced by QAndroidPlatformMenuBar::syncMenu(), and QAndroidPlatformMenu::syncMenuItem().
Definition at line 31 of file androidjnimenu.cpp.
Referenced by setActiveTopLevelWindow(), and setMenuBar().
|
static |
Definition at line 35 of file androidjnimenu.cpp.
Referenced by addAllMenuItemsToMenu(), onPrepareOptionsMenu(), and registerNatives().
|
static |
Definition at line 34 of file androidjnimenu.cpp.
Referenced by fillContextMenu(), onCreateContextMenu(), onPrepareOptionsMenu(), and registerNatives().
|
static |
Definition at line 32 of file androidjnimenu.cpp.
Referenced by addMenuBar(), onOptionsItemSelected(), onPrepareOptionsMenu(), removeMenuBar(), and setActiveTopLevelWindow().
|
static |
Definition at line 29 of file androidjnimenu.cpp.
Referenced by addMenuBar(), removeMenuBar(), and setActiveTopLevelWindow().
|
static |
Definition at line 36 of file androidjnimenu.cpp.
Referenced by addAllMenuItemsToMenu(), onPrepareOptionsMenu(), and registerNatives().
|
static |
Definition at line 361 of file androidjnimenu.cpp.
Referenced by registerNatives().
|
static |
Definition at line 25 of file androidjnimenu.cpp.
Referenced by hideContextMenu(), onContextItemSelected(), onContextMenuClosed(), and showContextMenu().
|
static |
Definition at line 39 of file androidjnimenu.cpp.
Referenced by fillMenuItem(), and registerNatives().
|
static |
Definition at line 40 of file androidjnimenu.cpp.
Referenced by fillMenuItem(), and registerNatives().
|
static |
Definition at line 41 of file androidjnimenu.cpp.
Referenced by fillMenuItem(), and registerNatives().
|
static |
Definition at line 37 of file androidjnimenu.cpp.
Referenced by onCreateContextMenu(), and registerNatives().
|
static |
Definition at line 42 of file androidjnimenu.cpp.
Referenced by fillMenuItem(), and registerNatives().
|
static |
Definition at line 43 of file androidjnimenu.cpp.
Referenced by fillMenuItem(), and registerNatives().
|
static |
Definition at line 26 of file androidjnimenu.cpp.
Referenced by androidPlatformMenuDestroyed(), fillContextMenu(), hideContextMenu(), onContextItemSelected(), onContextMenuClosed(), onCreateContextMenu(), and showContextMenu().
|
static |
Definition at line 30 of file androidjnimenu.cpp.
Referenced by onOptionsItemSelected(), onPrepareOptionsMenu(), removeMenuBar(), setActiveTopLevelWindow(), and setMenuBar().
|
static |
Definition at line 27 of file androidjnimenu.cpp.
Referenced by androidPlatformMenuDestroyed(), fillContextMenu(), hideContextMenu(), onContextItemSelected(), onContextMenuClosed(), onCreateContextMenu(), and showContextMenu().