KActionMenu
#include <KActionMenu>
Properties | |
QToolButton::ToolButtonPopupMode | popupMode |
Properties inherited from QAction | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
priority | |
shortcut | |
shortcutContext | |
shortcutVisibleInContextMenu | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
Properties inherited from QObject | |
objectName | |
Additional Inherited Members | |
Public Types inherited from QAction | |
enum | ActionEvent |
enum | MenuRole |
enum | Priority |
Public Types inherited from QObject | |
typedef | QObjectList |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Public Attributes inherited from QAction | |
AboutQtRole | |
AboutRole | |
ApplicationSpecificRole | |
HighPriority | |
Hover | |
LowPriority | |
NormalPriority | |
NoRole | |
PreferencesRole | |
QuitRole | |
TextHeuristicRole | |
Trigger | |
Protected Member Functions inherited from QWidgetAction | |
QList< QWidget * > | createdWidgets () const const |
virtual void | deleteWidget (QWidget *widget) |
virtual bool | event (QEvent *event) override |
virtual bool | eventFilter (QObject *obj, QEvent *event) override |
Protected Member Functions inherited from QAction | |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
A KActionMenu is an action that provides a sub-menu of other actions.
Plugged in a popupmenu, it will create a submenu. Plugged in a toolbar, it will create a button with a popup menu.
This is the action used by the XMLGUI since it holds other actions. If you want a submenu for selecting one tool among many (without icons), see KSelectAction.
Definition at line 38 of file kactionmenu.h.
Property Documentation
◆ popupMode
|
readwrite |
Definition at line 41 of file kactionmenu.h.
Constructor & Destructor Documentation
◆ KActionMenu() [1/3]
|
explicit |
Definition at line 34 of file kactionmenu.cpp.
◆ KActionMenu() [2/3]
Definition at line 42 of file kactionmenu.cpp.
◆ KActionMenu() [3/3]
Definition at line 51 of file kactionmenu.cpp.
◆ ~KActionMenu()
|
override |
Definition at line 61 of file kactionmenu.cpp.
Member Function Documentation
◆ addAction()
void KActionMenu::addAction | ( | QAction * | action | ) |
Adds action
to this KActionMenu.
The KActionMenu does not take ownership of action
.
Definition at line 86 of file kactionmenu.cpp.
◆ addSeparator()
QAction * KActionMenu::addSeparator | ( | ) |
Definition at line 91 of file kactionmenu.cpp.
◆ createWidget()
Reimplemented from QWidgetAction.
Definition at line 66 of file kactionmenu.cpp.
◆ insertAction()
Definition at line 107 of file kactionmenu.cpp.
◆ insertSeparator()
Definition at line 99 of file kactionmenu.cpp.
◆ popupMode()
QToolButton::ToolButtonPopupMode KActionMenu::popupMode | ( | ) | const |
The currently used popup mode when plugged in a KToolBar.
- See also
- setPopupMode()
- Since
- 5.77
Definition at line 117 of file kactionmenu.cpp.
◆ removeAction()
void KActionMenu::removeAction | ( | QAction * | action | ) |
Definition at line 112 of file kactionmenu.cpp.
◆ setPopupMode()
void KActionMenu::setPopupMode | ( | QToolButton::ToolButtonPopupMode | popupMode | ) |
Determines the popup mode when plugged in a KToolBar.
Options are:
- QToolButton::InstantPopup Clicking anywhere on the toolbar button opens the popup menu.
- QToolButton::DelayedPopup (Default) Clicking anywhere on the toolbar button triggers the default action. Clicking and holding the toolbar button opens the popup menu instead.
- QToolButton::MenuButtonPopup The toolbar button is split in a main button (triggers default action) and an arrow button (opens the popup menu).
- See also
- QToolButton
- Since
- 5.77
Definition at line 122 of file kactionmenu.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.