KDE3Support
k3popupmenu.cpp
Go to the documentation of this file.
204 } else if ( key == Qt::Key_Shift || key == Qt::Key_Control || key == Qt::Key_Alt || key == Qt::Key_Meta )
virtual void virtual_hook(int id, void *data)
end of RMB menus on menus support
Definition: k3popupmenu.cpp:543
A menu with keyboard searching and convenience methods for title items.
Definition: k3popupmenu.h:49
QPixmap titlePixmap(int id) const
Returns the icon of the title item at the specified id.
Definition: k3popupmenu.cpp:613
int timeout
void resetKeyboardVars(bool noMatches=false)
Definition: k3popupmenu.cpp:346
void aboutToShowContextMenu(K3PopupMenu *menu, QAction *menuAction, QMenu *ctxMenu)
connect to this signal to be notified when a context menu is about to be shown
virtual bool focusNextPrevChild(bool next)
Definition: k3popupmenu.cpp:330
void setKeyboardShortcutsExecute(bool enable)
Enables execution of the menu item once it is uniquely specified.
Definition: k3popupmenu.cpp:366
Qt::MouseButtons mouseButtons() const
Return the state of the mouse buttons when the last menuitem was activated.
Definition: k3popupmenu.cpp:157
static K3PopupMenu * contextMenuFocus()
Returns the K3PopupMenu associated with the current context menu.
Definition: k3popupmenu.cpp:429
virtual void mouseReleaseEvent(QMouseEvent *e)
Definition: k3popupmenu.cpp:389
QAction * addTitle(const QString &text, QAction *before=0L)
Inserts a title item with no icon.
Definition: k3popupmenu.cpp:108
virtual void mousePressEvent(QMouseEvent *e)
End keyboard navigation.
Definition: k3popupmenu.cpp:378
static QAction * contextMenuFocusAction()
returns the QAction associated with the current context menu
Definition: k3popupmenu.cpp:424
Qt::KeyboardModifiers keyboardModifiers() const
Return the state of the keyboard modifiers when the last menuitem was activated.
Definition: k3popupmenu.cpp:162
virtual void contextMenuEvent(QContextMenuEvent *e)
Definition: k3popupmenu.cpp:501
virtual void activateItemAt(int index)
Reimplemented for internal purposes.
Definition: k3popupmenu.cpp:140
int insertTitle(const QString &text, int id=-1, int index=-1)
Inserts a title item with no icon.
Definition: k3popupmenu.cpp:557
void changeTitle(int id, const QString &text)
Changes the title of the item at the specified id.
Definition: k3popupmenu.cpp:582
KLocale * locale()
QString removeAcceleratorMarker(const QString &label) const
Q3PopupMenu * contextMenu()
Returns the context menu associated with this menu.
Definition: k3popupmenu.cpp:403
static int contextMenuFocusItem()
returns the ID of the menuitem associated with the current context menu
Definition: k3popupmenu.cpp:627
void setKeyboardShortcutsEnabled(bool enable)
Enables keyboard navigation by searching for the entered key sequence.
Definition: k3popupmenu.cpp:361
Qt::ButtonState state() const
Return the state of the mouse button and keyboard modifiers when the last menuitem was activated...
Definition: k3popupmenu.cpp:151
virtual void closeEvent(QCloseEvent *)
This is re-implemented for keyboard navigation.
Definition: k3popupmenu.cpp:133
QString underlineText(const QString &text, uint length)
Definition: k3popupmenu.cpp:336
QString title(int id=-1) const
Returns the title of the title item at the specified id.
Definition: k3popupmenu.cpp:604
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.