kdeui
KGuiItem Class Reference
An abstract class for GUI data such as ToolTip and Icon. More...
#include <kguiitem.h>
Inherited by KAction::KActionPrivate.
Public Member Functions | |
bool | hasIcon () const |
bool | hasIconSet () const |
QString | iconName () const |
QIconSet | iconSet () const |
QIconSet | iconSet (KIcon::Group, int size=0, KInstance *instance=KGlobal::instance()) const |
bool | isEnabled () const |
KGuiItem (const KGuiItem &rhs) | |
KGuiItem (const QString &text, const QIconSet &iconSet, const QString &toolTip=QString::null, const QString &whatsThis=QString::null) | |
KGuiItem (const QString &text, const QString &iconName=QString::null, const QString &toolTip=QString::null, const QString &whatsThis=QString::null) | |
KGuiItem () | |
KGuiItem & | operator= (const KGuiItem &rhs) |
QString | plainText () const |
void | setEnabled (bool enable) |
void | setIconName (const QString &iconName) |
void | setIconSet (const QIconSet &iconset) |
void | setText (const QString &text) |
void | setToolTip (const QString &tooltip) |
void | setWhatsThis (const QString &whatsThis) |
QString | text () const |
QString | toolTip () const |
QString | whatsThis () const |
~KGuiItem () |
Detailed Description
An abstract class for GUI data such as ToolTip and Icon.
- See also:
- KStdGuiItem
Definition at line 38 of file kguiitem.h.
Constructor & Destructor Documentation
KGuiItem::KGuiItem | ( | ) |
Definition at line 71 of file kguiitem.cpp.
KGuiItem::KGuiItem | ( | const QString & | text, | |
const QString & | iconName = QString::null , |
|||
const QString & | toolTip = QString::null , |
|||
const QString & | whatsThis = QString::null | |||
) |
Definition at line 75 of file kguiitem.cpp.
KGuiItem::KGuiItem | ( | const QString & | text, | |
const QIconSet & | iconSet, | |||
const QString & | toolTip = QString::null , |
|||
const QString & | whatsThis = QString::null | |||
) |
Definition at line 85 of file kguiitem.cpp.
KGuiItem::KGuiItem | ( | const KGuiItem & | rhs | ) |
Definition at line 95 of file kguiitem.cpp.
KGuiItem::~KGuiItem | ( | ) |
Definition at line 114 of file kguiitem.cpp.
Member Function Documentation
bool KGuiItem::hasIcon | ( | ) | const |
returns whether an icon is defined, doesn't tell if it really exists
Definition at line 190 of file kguiitem.cpp.
bool KGuiItem::hasIconSet | ( | ) | const [inline] |
Definition at line 79 of file kguiitem.h.
QString KGuiItem::iconName | ( | ) | const |
Definition at line 170 of file kguiitem.cpp.
QIconSet KGuiItem::iconSet | ( | ) | const [inline] |
Definition at line 65 of file kguiitem.h.
QIconSet KGuiItem::iconSet | ( | KIcon::Group | group, | |
int | size = 0 , |
|||
KInstance * | instance = KGlobal::instance() | |||
) | const |
Definition at line 152 of file kguiitem.cpp.
bool KGuiItem::isEnabled | ( | ) | const |
Definition at line 185 of file kguiitem.cpp.
Definition at line 101 of file kguiitem.cpp.
QString KGuiItem::plainText | ( | ) | const |
Definition at line 125 of file kguiitem.cpp.
void KGuiItem::setEnabled | ( | bool | enable | ) |
Definition at line 223 of file kguiitem.cpp.
void KGuiItem::setIconName | ( | const QString & | iconName | ) |
Definition at line 206 of file kguiitem.cpp.
void KGuiItem::setIconSet | ( | const QIconSet & | iconset | ) |
Definition at line 199 of file kguiitem.cpp.
void KGuiItem::setText | ( | const QString & | text | ) |
Definition at line 195 of file kguiitem.cpp.
void KGuiItem::setToolTip | ( | const QString & | tooltip | ) |
Definition at line 213 of file kguiitem.cpp.
void KGuiItem::setWhatsThis | ( | const QString & | whatsThis | ) |
Definition at line 218 of file kguiitem.cpp.
QString KGuiItem::text | ( | ) | const |
Definition at line 119 of file kguiitem.cpp.
QString KGuiItem::toolTip | ( | ) | const |
Definition at line 175 of file kguiitem.cpp.
QString KGuiItem::whatsThis | ( | ) | const |
Definition at line 180 of file kguiitem.cpp.
The documentation for this class was generated from the following files: