QtExtraComponents
#include <qiconitem.h>
Public Types | |
enum | State { DefaultState, ActiveState, DisabledState } |
Signals | |
void | stateChanged (State state) |
Public Member Functions | |
QIconItem (QDeclarativeItem *parent=0) | |
~QIconItem () | |
QIcon | icon () const |
int | implicitHeight () const |
int | implicitWidth () const |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
void | setIcon (const QVariant &icon) |
void | setSmooth (const bool smooth) |
void | setState (State state) |
bool | smooth () const |
QIconItem::State | state () const |
Properties | |
QVariant | icon |
int | implicitHeight |
int | implicitWidth |
bool | smooth |
State | state |
Detailed Description
Definition at line 27 of file qiconitem.h.
Member Enumeration Documentation
enum QIconItem::State |
Enumerator | |
---|---|
DefaultState | |
ActiveState |
The default state. |
DisabledState |
Icon is active. Icon is disabled. |
Definition at line 41 of file qiconitem.h.
Constructor & Destructor Documentation
QIconItem::QIconItem | ( | QDeclarativeItem * | parent = 0 | ) |
Definition at line 28 of file qiconitem.cpp.
QIconItem::~QIconItem | ( | ) |
Definition at line 37 of file qiconitem.cpp.
Member Function Documentation
QIcon QIconItem::icon | ( | ) | const |
int QIconItem::implicitHeight | ( | ) | const |
int QIconItem::implicitWidth | ( | ) | const |
void QIconItem::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | option, | ||
QWidget * | widget | ||
) |
Definition at line 98 of file qiconitem.cpp.
void QIconItem::setIcon | ( | const QVariant & | icon | ) |
Definition at line 41 of file qiconitem.cpp.
void QIconItem::setSmooth | ( | const bool | smooth | ) |
Definition at line 84 of file qiconitem.cpp.
void QIconItem::setState | ( | QIconItem::State | state | ) |
Definition at line 63 of file qiconitem.cpp.
bool QIconItem::smooth | ( | ) | const |
QIconItem::State QIconItem::state | ( | ) | const |
|
signal |
Property Documentation
|
readwrite |
Definition at line 31 of file qiconitem.h.
|
read |
Definition at line 34 of file qiconitem.h.
|
read |
Definition at line 33 of file qiconitem.h.
|
readwrite |
Definition at line 32 of file qiconitem.h.
|
readwrite |
Definition at line 35 of file qiconitem.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.