KDEUI
kmenu.cpp
Go to the documentation of this file.
254 } else if ( key == Qt::Key_Shift || key == Qt::Key_Control || key == Qt::Key_Alt || key == Qt::Key_Meta )
452 const int index = metaObject->indexOfMethod("triggered(Qt::MouseButtons,Qt::KeyboardModifiers)");
void setText(const QString &text)
void setDown(bool)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Qt::KeyboardModifiers modifiers() const
Type type() const
Qt::KeyboardModifiers keyboardModifiers()
font
void setKeyboardShortcutsEnabled(bool enable)
Enables keyboard navigation by searching for the entered key sequence.
Definition: kmenu.cpp:412
bool invoke(QObject *object, Qt::ConnectionType connectionType, QGenericReturnArgument returnValue, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9) const
int indexOfMethod(const char *method) const
static QAction * contextMenuFocusAction()
returns the QAction associated with the current context menu
Definition: kmenu.cpp:551
void setDefaultAction(QAction *action)
int timeout
void setIcon(const QIcon &icon)
virtual const QMetaObject * metaObject() const
T value() const
void setKeyboardShortcutsExecute(bool enable)
Enables execution of the menu item once it is uniquely specified.
Definition: kmenu.cpp:417
Qt::MouseButtons buttons() const
void clear()
void setBold(bool enable)
void insertAction(QAction *before, QAction *action)
int count(const T &value) const
virtual void contextMenuEvent(QContextMenuEvent *event)
QString & insert(int position, QChar ch)
void installEventFilter(QObject *filterObj)
Qt::MouseButton button() const
void setObjectName(const QString &name)
virtual void closeEvent(QCloseEvent *)
This is re-implemented for keyboard navigation.
Definition: kmenu.cpp:200
QString text() const
QPoint pos() const
virtual bool eventFilter(QObject *watched, QEvent *event)
void hide()
KAction * next(const QObject *recvr, const char *slot, QObject *parent)
Scroll down one page.
Definition: kstandardaction.cpp:414
Qt::KeyboardModifiers modifiers() const
int key() const
void accept()
bool blockSignals(bool block)
const QFont & font() const
void setValue(const T &value)
Qt::MouseButtons mouseButtons() const
Return the state of the mouse buttons when the last menuitem was activated.
Definition: kmenu.cpp:207
KLocale * locale()
QString removeAcceleratorMarker(const QString &label) const
typedef MouseButtons
QMenu * contextMenu()
Returns the context menu associated with this menu The data property of all actions inserted into the...
Definition: kmenu.cpp:467
void setDefaultWidget(QWidget *widget)
QWidget * activePopupWidget()
QString left(int n) const
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
QObject * parent() const
void setToolButtonStyle(Qt::ToolButtonStyle style)
QMetaMethod method(int index) const
static void manage(QWidget *widget, bool programmers_mode=false)
Manages the accelerators of a widget.
Definition: kacceleratormanager.cpp:509
Qt::KeyboardModifiers keyboardModifiers() const
Return the state of the keyboard modifiers when the last menuitem was activated.
Definition: kmenu.cpp:212
bool isEnabled() const
static KMenu * contextMenuFocus()
Returns the KMenu associated with the current context menu.
Definition: kmenu.cpp:546
QAction * addTitle(const QString &text, QAction *before=0L)
Inserts a title item with no icon.
Definition: kmenu.cpp:170
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:23:59 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:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.