KDEUI
kdualaction.cpp
Go to the documentation of this file.
61 KDualAction::KDualAction(const QString &inactiveText, const QString &activeText, QObject *parent)
void setActiveToolTip(const QString &)
Sets the tooltip for the active state.
Definition: kdualaction.cpp:98
void setInactiveText(const QString &)
Sets the text for the inactive state.
Definition: kdualaction.cpp:95
void setIconForStates(const QIcon &icon)
Convenience method to set the icon for both active and inactive states.
Definition: kdualaction.cpp:103
KGuiItem activeGuiItem() const
Gets the KGuiItem for the active state.
Definition: kdualaction.cpp:84
void setActiveText(const QString &)
Sets the text for the active state.
Definition: kdualaction.cpp:93
bool autoToggle() const
Returns whether the current action will automatically be changed when the user triggers this action...
Definition: kdualaction.cpp:114
void setInactiveIcon(const QIcon &)
Sets the icon for the inactive state.
Definition: kdualaction.cpp:90
void setInactiveGuiItem(const KGuiItem &)
Sets the KGuiItem for the inactive state.
Definition: kdualaction.cpp:85
KGuiItem inactiveGuiItem() const
Gets the KGuiItem for the inactive state.
Definition: kdualaction.cpp:86
void setAutoToggle(bool)
Defines whether the current action should automatically be changed when the user triggers this action...
Definition: kdualaction.cpp:109
An action which can alternate between two texts/icons when triggered.
Definition: kdualaction.h:58
void setInactiveToolTip(const QString &)
Sets the tooltip for the inactive state.
Definition: kdualaction.cpp:100
QString inactiveToolTip() const
Gets the tooltip for the inactive state.
Definition: kdualaction.cpp:101
KDualAction(QObject *parent)
Constructs a KDualAction with the specified parent.
Definition: kdualaction.cpp:71
void setActiveGuiItem(const KGuiItem &)
Sets the KGuiItem for the active state.
Definition: kdualaction.cpp:83
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.