KDE3Support
k3popupmenu.h
Go to the documentation of this file.
static K3PopupMenu * contextMenuFocus()
Returns the K3PopupMenu associated with the current context menu.
Definition k3popupmenu.cpp:429
static int contextMenuFocusItem()
returns the ID of the menuitem associated with the current context menu
Definition k3popupmenu.cpp:627
Q3PopupMenu * contextMenu()
Returns the context menu associated with this menu.
Definition k3popupmenu.cpp:403
Qt::MouseButtons mouseButtons() const
Return the state of the mouse buttons when the last menuitem was activated.
Definition k3popupmenu.cpp:157
void setKeyboardShortcutsExecute(bool enable)
Enables execution of the menu item once it is uniquely specified.
Definition k3popupmenu.cpp:366
virtual void activateItemAt(int index)
Reimplemented for internal purposes.
Definition k3popupmenu.cpp:140
Qt::KeyboardModifiers keyboardModifiers() const
Return the state of the keyboard modifiers when the last menuitem was activated.
Definition k3popupmenu.cpp:162
int insertTitle(const QString &text, int id=-1, int index=-1)
Inserts a title item with no icon.
Definition k3popupmenu.cpp:557
virtual bool focusNextPrevChild(bool next)
Definition k3popupmenu.cpp:330
void aboutToShowContextMenu(K3PopupMenu *menu, int menuItem, Q3PopupMenu *ctxMenu)
compat
virtual void virtual_hook(int id, void *data)
end of RMB menus on menus support
Definition k3popupmenu.cpp:543
virtual void contextMenuEvent(QContextMenuEvent *e)
Definition k3popupmenu.cpp:501
virtual void closeEvent(QCloseEvent *)
This is re-implemented for keyboard navigation.
Definition k3popupmenu.cpp:133
virtual void mouseReleaseEvent(QMouseEvent *e)
Definition k3popupmenu.cpp:389
static QAction * contextMenuFocusAction()
returns the QAction associated with the current context menu
Definition k3popupmenu.cpp:424
QString underlineText(const QString &text, uint length)
Definition k3popupmenu.cpp:336
QPixmap titlePixmap(int id) const
Returns the icon of the title item at the specified id.
Definition k3popupmenu.cpp:613
Qt::ButtonState state() const
Return the state of the mouse button and keyboard modifiers when the last menuitem was activated.
Definition k3popupmenu.cpp:151
void setKeyboardShortcutsEnabled(bool enable)
Enables keyboard navigation by searching for the entered key sequence.
Definition k3popupmenu.cpp:361
void aboutToShowContextMenu(K3PopupMenu *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 k3popupmenu.cpp:108
QString title(int id=-1) const
Returns the title of the title item at the specified id.
Definition k3popupmenu.cpp:604
void resetKeyboardVars(bool noMatches=false)
Definition k3popupmenu.cpp:346
void changeTitle(int id, const QString &text)
Changes the title of the item at the specified id.
Definition k3popupmenu.cpp:582
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.