KWidgetsAddons
kdualaction.cpp
An action which can alternate between two texts/icons when triggered.
Definition kdualaction.h:51
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
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
void setIcon(const QIcon &icon)
void setText(const QString &text)
void setToolTip(const QString &tip)
void triggered(bool checked)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
This file is part of the KDE documentation.
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
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.