KWidgetsAddons
ktoolbarpopupaction.cpp
This action is a normal action everywhere, except in a toolbar where it also has a popupmenu (optiona...
Definition ktoolbarpopupaction.h:47
QWidget * createWidget(QWidget *parent) override
Reimplemented from QWidgetAction.
Definition ktoolbarpopupaction.cpp:65
QMenu * popupMenu() const
The popup menu that is shown when clicking (some time) on the toolbar button.
Definition ktoolbarpopupaction.cpp:103
void setPopupMode(PopupMode popupMode)
Determines the popup mode of the toolbar button.
Definition ktoolbarpopupaction.cpp:91
KToolBarPopupAction(const QIcon &icon, const QString &text, QObject *parent)
Create a KToolBarPopupAction, with a text, an icon, a parent and a name.
Definition ktoolbarpopupaction.cpp:55
~KToolBarPopupAction() override
Destroys the toolbar popup action.
void setIconSize(const QSize &size)
void setIcon(const QIcon &icon)
void setText(const QString &text)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
T qobject_cast(QObject *object)
NoFocus
void actionTriggered(QAction *action)
void iconSizeChanged(const QSize &iconSize)
void toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)
InstantPopup
void setAutoRaise(bool enable)
void setPopupMode(ToolButtonPopupMode mode)
void setDefaultAction(QAction *action)
void setMenu(QMenu *menu)
void setToolButtonStyle(Qt::ToolButtonStyle style)
void triggered(QAction *action)
void setFocusPolicy(Qt::FocusPolicy policy)
virtual QWidget * createWidget(QWidget *parent)
QList< QWidget * > createdWidgets() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:58:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.