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 )
text
virtual void virtual_hook(int id, void *data)
end of RMB menus on menus support
Definition: k3popupmenu.cpp:543
Qt::KeyboardModifiers modifiers() const
font
Qt::ButtonState state() const
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
void setIcon(const QIcon &icon)
QPoint mapToGlobal(const QPoint &pos) const
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
Qt::MouseButtons buttons() const
static K3PopupMenu * contextMenuFocus()
Returns the K3PopupMenu associated with the current context menu.
Definition: k3popupmenu.cpp:429
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual void mouseReleaseEvent(QMouseEvent *e)
Definition: k3popupmenu.cpp:389
Qt::ButtonState state() const
QAction * addTitle(const QString &text, QAction *before=0L)
Inserts a title item with no icon.
Definition: k3popupmenu.cpp:108
void setBold(bool enable)
virtual void mousePressEvent(QMouseEvent *e)
End keyboard navigation.
Definition: k3popupmenu.cpp:378
void insertAction(QAction *before, QAction *action)
virtual void contextMenuEvent(QContextMenuEvent *event)
QString & insert(int position, QChar ch)
static QAction * contextMenuFocusAction()
returns the QAction associated with the current context menu
Definition: k3popupmenu.cpp:424
Qt::MouseButton button() const
QString text() const
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
typedef ButtonState
void hide()
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
Qt::KeyboardModifiers modifiers() const
int key() const
void accept()
bool blockSignals(bool block)
bool contains(QChar ch, Qt::CaseSensitivity cs) const
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
typedef MouseButtons
static int contextMenuFocusItem()
returns the ID of the menuitem associated with the current context menu
Definition: k3popupmenu.cpp:627
QString left(int n) const
void setKeyboardShortcutsEnabled(bool enable)
Enables keyboard navigation by searching for the entered key sequence.
Definition: k3popupmenu.cpp:361
virtual void closeEvent(QCloseEvent *event)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< QAction * > actions() const
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
void setEnabled(bool)
singleShot
typedef KeyboardModifiers
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.