KDEUI
#include <kguiitem.h>
Public Member Functions | |
KGuiItem () | |
KGuiItem (const QString &text, const QString &iconName=QString(), const QString &toolTip=QString(), const QString &whatsThis=QString()) | |
KGuiItem (const QString &text, const KIcon &icon, const QString &toolTip=QString(), const QString &whatsThis=QString()) | |
KGuiItem (const KGuiItem &rhs) | |
~KGuiItem () | |
bool | hasIcon () const |
bool | hasIconSet () const |
KIcon | icon () const |
QString | iconName () const |
QIcon | iconSet (KIconLoader::Group=KIconLoader::Small, int size=0) const |
bool | isEnabled () const |
KGuiItem & | operator= (const KGuiItem &rhs) |
QString | plainText () const |
void | setEnabled (bool enable) |
void | setIcon (const KIcon &iconset) |
void | setIconName (const QString &iconName) |
void | setText (const QString &text) |
void | setToolTip (const QString &tooltip) |
void | setWhatsThis (const QString &whatsThis) |
QString | text () const |
QString | toolTip () const |
QString | whatsThis () const |
Detailed Description
An abstract class for GUI data such as ToolTip and Icon.
- See also
- KStandardGuiItem
Definition at line 36 of file kguiitem.h.
Constructor & Destructor Documentation
KGuiItem::KGuiItem | ( | ) |
Definition at line 69 of file kguiitem.cpp.
|
explicit |
Definition at line 73 of file kguiitem.cpp.
KGuiItem::KGuiItem | ( | const QString & | text, |
const KIcon & | icon, | ||
const QString & | toolTip = QString() , |
||
const QString & | whatsThis = QString() |
||
) |
Definition at line 83 of file kguiitem.cpp.
KGuiItem::KGuiItem | ( | const KGuiItem & | rhs | ) |
Definition at line 93 of file kguiitem.cpp.
KGuiItem::~KGuiItem | ( | ) |
Definition at line 112 of file kguiitem.cpp.
Member Function Documentation
bool KGuiItem::hasIcon | ( | ) | const |
Definition at line 199 of file kguiitem.cpp.
|
inline |
Definition at line 75 of file kguiitem.h.
KIcon KGuiItem::icon | ( | ) | const |
Definition at line 151 of file kguiitem.cpp.
QString KGuiItem::iconName | ( | ) | const |
Definition at line 179 of file kguiitem.cpp.
QIcon KGuiItem::iconSet | ( | KIconLoader::Group | group = KIconLoader::Small , |
int | size = 0 |
||
) | const |
- Deprecated:
- use icon() instead
Definition at line 165 of file kguiitem.cpp.
bool KGuiItem::isEnabled | ( | ) | const |
Definition at line 194 of file kguiitem.cpp.
Definition at line 99 of file kguiitem.cpp.
QString KGuiItem::plainText | ( | ) | const |
Definition at line 123 of file kguiitem.cpp.
void KGuiItem::setEnabled | ( | bool | enable | ) |
Definition at line 233 of file kguiitem.cpp.
void KGuiItem::setIcon | ( | const KIcon & | iconset | ) |
Definition at line 209 of file kguiitem.cpp.
void KGuiItem::setIconName | ( | const QString & | iconName | ) |
Definition at line 216 of file kguiitem.cpp.
void KGuiItem::setText | ( | const QString & | text | ) |
Definition at line 204 of file kguiitem.cpp.
void KGuiItem::setToolTip | ( | const QString & | tooltip | ) |
Definition at line 223 of file kguiitem.cpp.
void KGuiItem::setWhatsThis | ( | const QString & | whatsThis | ) |
Definition at line 228 of file kguiitem.cpp.
QString KGuiItem::text | ( | ) | const |
Definition at line 117 of file kguiitem.cpp.
QString KGuiItem::toolTip | ( | ) | const |
Definition at line 184 of file kguiitem.cpp.
QString KGuiItem::whatsThis | ( | ) | const |
Definition at line 189 of file kguiitem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.