KWidgetsAddons
kdualaction.h
KDualAction(QObject *parent)
Constructs a KDualAction with the specified parent.
Definition kdualaction.cpp:57
void setActiveGuiItem(const KGuiItem &)
Sets the KGuiItem for the active state.
Definition kdualaction.cpp:66
void setActiveText(const QString &)
Sets the text for the active state.
Definition kdualaction.cpp:100
void setInactiveText(const QString &)
Sets the text for the inactive state.
Definition kdualaction.cpp:108
void setIconForStates(const QIcon &icon)
Convenience method to set the icon for both active and inactive states.
Definition kdualaction.cpp:134
KGuiItem inactiveGuiItem() const
Gets the KGuiItem for the inactive state.
Definition kdualaction.cpp:78
void setInactiveIcon(const QIcon &)
Sets the icon for the inactive state.
Definition kdualaction.cpp:91
void setInactiveGuiItem(const KGuiItem &)
Sets the KGuiItem for the inactive state.
Definition kdualaction.cpp:74
void setActiveToolTip(const QString &)
Sets the tooltip for the active state.
Definition kdualaction.cpp:117
void setInactiveToolTip(const QString &)
Sets the tooltip for the inactive state.
Definition kdualaction.cpp:125
QString inactiveToolTip() const
Gets the tooltip for the inactive state.
Definition kdualaction.cpp:129
void activeChangedByUser(bool)
Only emitted when the state changes because the user triggered the action.
bool autoToggle() const
Returns whether the current action will automatically be changed when the user triggers this action.
Definition kdualaction.cpp:145
void setAutoToggle(bool)
Defines whether the current action should automatically be changed when the user triggers this action...
Definition kdualaction.cpp:140
An abstract class for setting the text, icon, tooltip and WhatsThis data on a GUI item (e....
Definition kguiitem.h:34
QAction(QObject *parent)
icon
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
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.