KDEUI
kselectaction.h
Go to the documentation of this file.
60 Q_PROPERTY( QToolButton::ToolButtonPopupMode toolButtonPopupMode READ toolButtonPopupMode WRITE setToolButtonPopupMode )
bool isEditable() const
When this action is plugged into a toolbar, it creates a combobox.
Definition kselectaction.cpp:415
bool setCurrentAction(QAction *action)
Sets the currently checked item.
Definition kselectaction.cpp:133
KSelectAction(QObject *parent)
Constructs a selection action with the specified parent.
Definition kselectaction.cpp:56
void setItems(const QStringList &lst)
Convenience function to create the list of selectable items.
Definition kselectaction.cpp:349
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:446
void setComboWidth(int width)
When this action is plugged into a toolbar, it creates a combobox.
Definition kselectaction.cpp:201
void triggered(QAction *action)
This signal is emitted when an item is selected;.
QToolButton::ToolButtonPopupMode toolButtonPopupMode
Definition kselectaction.h:60
void triggered(const QString &text)
This signal is emitted when an item is selected;.
virtual bool eventFilter(QObject *watched, QEvent *event)
Definition kselectaction.cpp:646
@ MenuMode
Creates a button which pops up a menu when interacted with, as defined by toolButtonPopupMode().
Definition kselectaction.h:108
void setToolBarMode(ToolBarMode mode)
Set the type of widget to be inserted in a toolbar to mode.
Definition kselectaction.cpp:434
virtual void actionTriggered(QAction *action)
This function is called whenever an action from the selections is triggered.
Definition kselectaction.cpp:309
QAction * action(int index) const
Returns the action at index, if one exists.
Definition kselectaction.cpp:162
void setEditable(bool)
When this action is plugged into a toolbar, it creates a combobox.
Definition kselectaction.cpp:404
static Qt::CaseSensitivity cs
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.