KDEUI
kmenu.h
Go to the documentation of this file.
void aboutToShowContextMenu(KMenu *menu, QAction *menuAction, QMenu *ctxMenu)
connect to this signal to be notified when a context menu is about to be shown
QAction * addTitle(const QString &text, QAction *before=0L)
Inserts a title item with no icon.
Definition kmenu.cpp:170
QMenu * contextMenu()
Returns the context menu associated with this menu The data property of all actions inserted into the...
Definition kmenu.cpp:467
virtual void closeEvent(QCloseEvent *)
This is re-implemented for keyboard navigation.
Definition kmenu.cpp:200
Qt::KeyboardModifiers keyboardModifiers() const
Return the state of the keyboard modifiers when the last menuitem was activated.
Definition kmenu.cpp:212
Qt::MouseButtons mouseButtons() const
Return the state of the mouse buttons when the last menuitem was activated.
Definition kmenu.cpp:207
void setKeyboardShortcutsEnabled(bool enable)
Enables keyboard navigation by searching for the entered key sequence.
Definition kmenu.cpp:412
static KMenu * contextMenuFocus()
Returns the KMenu associated with the current context menu.
Definition kmenu.cpp:546
static QAction * contextMenuFocusAction()
returns the QAction associated with the current context menu
Definition kmenu.cpp:551
void setKeyboardShortcutsExecute(bool enable)
Enables execution of the menu item once it is uniquely specified.
Definition kmenu.cpp:417
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.