KWidgetsAddons
kselectaction.h
61 Q_PROPERTY(QToolButton::ToolButtonPopupMode toolButtonPopupMode READ toolButtonPopupMode WRITE setToolButtonPopupMode)
195 * \return \e true if a corresponding action was found and thus set to the current action, otherwise \e false
240 * It appends the action if before is a null pointer or before is not a valid action for this widget.
bool isEditable() const
When this action is plugged into a toolbar, it creates a combobox.
Definition kselectaction.cpp:420
bool setCurrentAction(QAction *action)
Sets the currently checked item.
Definition kselectaction.cpp:121
KSelectAction(QObject *parent)
Constructs a selection action with the specified parent.
Definition kselectaction.cpp:52
void setItems(const QStringList &lst)
Convenience function to create the list of selectable items.
Definition kselectaction.cpp:353
void setToolButtonPopupMode(QToolButton::ToolButtonPopupMode mode)
Set how this list of actions should behave when in popup mode and plugged into a toolbar.
Definition kselectaction.cpp:452
void setComboWidth(int width)
When this action is plugged into a toolbar, it creates a combobox.
Definition kselectaction.cpp:196
virtual void slotActionTriggered(QAction *action)
This function is called whenever an action from the selections is triggered.
Definition kselectaction.cpp:310
@ MenuMode
Creates a button which pops up a menu when interacted with, as defined by toolButtonPopupMode().
Definition kselectaction.h:107
void setToolBarMode(ToolBarMode mode)
Set the type of widget to be inserted in a toolbar to mode.
Definition kselectaction.cpp:440
void indexTriggered(int index)
This signal is emitted when an item is selected.
void textTriggered(const QString &text)
This signal is emitted when an item is selected.
void actionTriggered(QAction *action)
This signal is emitted when an item is selected.
QAction * action(int index) const
Returns the action at index, if one exists.
Definition kselectaction.cpp:154
void setEditable(bool)
When this action is plugged into a toolbar, it creates a combobox.
Definition kselectaction.cpp:408
bool setCurrentItem(int index)
Convenience function to set the currently checked action to be the action at index index.
Definition kselectaction.cpp:148
QAction(QObject *parent)
icon
void setMenu(QMenu *menu)
text
QObject(QObject *parent)
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
QObject * parent() const const
CaseSensitivity
ToolButtonPopupMode
QWidgetAction(QObject *parent)
virtual QWidget * createWidget(QWidget *parent)
virtual void deleteWidget(QWidget *widget)
virtual bool event(QEvent *event) override
virtual bool eventFilter(QObject *obj, QEvent *event) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.