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
KGuiItem inactiveGuiItem() const
Gets the KGuiItem for the inactive state.
Definition: kdualaction.cpp:86
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
void setActiveText(const QString &)
Sets the text for the active state.
Definition: kdualaction.cpp:93
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 activeGuiItem() const
Gets the KGuiItem for the active state.
Definition: kdualaction.cpp:84
void setAutoToggle(bool)
Defines whether the current action should automatically be changed when the user triggers this action...
Definition: kdualaction.cpp:109
QString inactiveToolTip() const
Gets the tooltip for the inactive state.
Definition: kdualaction.cpp:101
bool autoToggle() const
Returns whether the current action will automatically be changed when the user triggers this action...
Definition: kdualaction.cpp:114
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
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-2017 The KDE developers.
Generated on Thu Mar 2 2017 19:07:18 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Mar 2 2017 19:07:18 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.