KWidgetsAddons
kguiitem.cpp
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 &iconset)
Sets the icon to be shown next to the text of this GUI item.
Definition kguiitem.cpp:143
static void assign(QPushButton *button, const KGuiItem &item)
A static method that can be used to set the text, icon, tooltip and WhatThis properties from item on ...
Definition kguiitem.cpp:172
bool hasIcon() const
Returns true if this GUI item has an icon set for it and false otherwise.
Definition kguiitem.cpp:133
KGuiItem & operator=(const KGuiItem &other)
Assigns other to this KGuiItem object and returns a reference to this object.
QString whatsThis() const
Returns the WhatThis text used for this GUI item.
Definition kguiitem.cpp:123
bool isEnabled() const
Returns true if this GUI item is enabled and false otherwise.
Definition kguiitem.cpp:128
QString iconName() const
Returns the name of the icon used by this GUI item.
Definition kguiitem.cpp:113
void setEnabled(bool enable)
Toggles the enabled property of this GUI item.
Definition kguiitem.cpp:167
QString plainText() const
Returns the text used by this GUI item after stripping all existing '&' characters which denote keybo...
Definition kguiitem.cpp:73
void setIconName(const QString &iconName)
Sets the name of the icon that will be shown next to the text of this GUI item.
Definition kguiitem.cpp:150
void setIcon(const QIcon &icon)
void setText(const QString &text)
QIcon fromTheme(const QString &name)
bool isNull() const const
bool isEmpty() const const
void resize(qsizetype newSize, QChar fillChar)
void truncate(qsizetype position)
void setToolTip(const QString &)
void setWhatsThis(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.