Definition at line 63 of file qlistwidget.h.
#include <qlistwidget.h>
Public Types |
|
| enum | ItemType { Type = 0, UserType = 1000 } |
Public Member Functions |
|
| QListWidgetItem (QListWidget *view=0, int type=Type) | |
| QListWidgetItem (const QString &text, QListWidget *view=0, int type=Type) | |
| QListWidgetItem (const QIcon &icon, const QString &text, QListWidget *view=0, int type=Type) | |
| QListWidgetItem (const QListWidgetItem &other) | |
| virtual | ~QListWidgetItem () |
| virtual QListWidgetItem * | clone () const |
| QListWidget * | listWidget () const |
| void | setSelected (bool select) |
| bool | isSelected () const |
| void | setHidden (bool hide) |
| bool | isHidden () const |
| Qt::ItemFlags | flags () const |
| void | setFlags (Qt::ItemFlags flags) |
| QString | text () const |
| void | setText (const QString &text) |
| QIcon | icon () const |
| void | setIcon (const QIcon &icon) |
| QString | statusTip () const |
| void | setStatusTip (const QString &statusTip) |
| QString | toolTip () const |
| void | setToolTip (const QString &toolTip) |
| QString | whatsThis () const |
| void | setWhatsThis (const QString &whatsThis) |
| QFont | font () const |
| void | setFont (const QFont &font) |
| int | textAlignment () const |
| void | setTextAlignment (int alignment) |
| QColor | backgroundColor () const |
| virtual void | setBackgroundColor (const QColor &color) |
| QBrush | background () const |
| void | setBackground (const QBrush &brush) |
| QColor | textColor () const |
| void | setTextColor (const QColor &color) |
| QBrush | foreground () const |
| void | setForeground (const QBrush &brush) |
| Qt::CheckState | checkState () const |
| void | setCheckState (Qt::CheckState state) |
| QSize | sizeHint () const |
| void | setSizeHint (const QSize &size) |
| virtual QVariant | data (int role) const |
| virtual void | setData (int role, const QVariant &value) |
| virtual bool | operator< (const QListWidgetItem &other) const |
| virtual void | read (QDataStream &in) |
| virtual void | write (QDataStream &out) const |
| QListWidgetItem & | operator= (const QListWidgetItem &other) |
| int | type () const |
Friends |
|
| class | QListModel |
| class | QListWidget |
| enum ItemType |
Definition at line 68 of file qlistwidget.h.
| QListWidgetItem | ( | QListWidget * | view = 0, |
| int | type = Type |
||
| ) | [explicit] |
| QListWidgetItem | ( | const QString & | text, |
| QListWidget * | view = 0, |
||
| int | type = Type |
||
| ) | [explicit] |
| QListWidgetItem | ( | const QIcon & | icon, |
| const QString & | text, | ||
| QListWidget * | view = 0, |
||
| int | type = Type |
||
| ) | [explicit] |
| QListWidgetItem | ( | const QListWidgetItem & | other | ) |
| virtual ~QListWidgetItem | ( | ) | [virtual] |
| virtual QListWidgetItem* clone | ( | ) | const [virtual] |
| QListWidget* listWidget | ( | ) | const [inline] |
| void setSelected | ( | bool | select | ) | [inline] |
Definition at line 317 of file qlistwidget.h.
{ if (view) view->setItemSelected(this, aselect); }
| bool isSelected | ( | ) | const [inline] |
Definition at line 320 of file qlistwidget.h.
{ return (view ? view->isItemSelected(this) : false); }
| void setHidden | ( | bool | hide | ) | [inline] |
Definition at line 323 of file qlistwidget.h.
{ if (view) view->setItemHidden(this, ahide); }
| bool isHidden | ( | ) | const [inline] |
Definition at line 326 of file qlistwidget.h.
{ return (view ? view->isItemHidden(this) : false); }
| Qt::ItemFlags flags | ( | ) | const [inline] |
| void setFlags | ( | Qt::ItemFlags | flags | ) |
| QString text | ( | ) | const [inline] |
Definition at line 89 of file qlistwidget.h.
{ return data(Qt::DisplayRole).toString(); }
| void setText | ( | const QString & | text | ) | [inline] |
Definition at line 173 of file qlistwidget.h.
{ setData(Qt::DisplayRole, atext); }
| QIcon icon | ( | ) | const [inline] |
Definition at line 93 of file qlistwidget.h.
{ return qvariant_cast<QIcon>(data(Qt::DecorationRole)); }
| void setIcon | ( | const QIcon & | icon | ) | [inline] |
Definition at line 176 of file qlistwidget.h.
{ setData(Qt::DecorationRole, aicon); }
| QString statusTip | ( | ) | const [inline] |
Definition at line 97 of file qlistwidget.h.
{ return data(Qt::StatusTipRole).toString(); }
| void setStatusTip | ( | const QString & | statusTip | ) | [inline] |
Definition at line 179 of file qlistwidget.h.
{ setData(Qt::StatusTipRole, astatusTip); }
| QString toolTip | ( | ) | const [inline] |
Definition at line 102 of file qlistwidget.h.
{ return data(Qt::ToolTipRole).toString(); }
| void setToolTip | ( | const QString & | toolTip | ) | [inline] |
Definition at line 183 of file qlistwidget.h.
{ setData(Qt::ToolTipRole, atoolTip); }
| QString whatsThis | ( | ) | const [inline] |
Definition at line 108 of file qlistwidget.h.
{ return data(Qt::WhatsThisRole).toString(); }
| void setWhatsThis | ( | const QString & | whatsThis | ) | [inline] |
Definition at line 188 of file qlistwidget.h.
{ setData(Qt::WhatsThisRole, awhatsThis); }
| QFont font | ( | ) | const [inline] |
Definition at line 113 of file qlistwidget.h.
{ return qvariant_cast<QFont>(data(Qt::FontRole)); }
| void setFont | ( | const QFont & | font | ) | [inline] |
Definition at line 192 of file qlistwidget.h.
{ setData(Qt::FontRole, afont); }
| int textAlignment | ( | ) | const [inline] |
Definition at line 117 of file qlistwidget.h.
{ return data(Qt::TextAlignmentRole).toInt(); }
| void setTextAlignment | ( | int | alignment | ) | [inline] |
Definition at line 119 of file qlistwidget.h.
{ setData(Qt::TextAlignmentRole, alignment); }
| QColor backgroundColor | ( | ) | const [inline] |
Definition at line 122 of file qlistwidget.h.
{ return qvariant_cast<QColor>(data(Qt::BackgroundColorRole)); }
| virtual void setBackgroundColor | ( | const QColor & | color | ) | [inline, virtual] |
Definition at line 124 of file qlistwidget.h.
{ setData(Qt::BackgroundColorRole, color); }
| QBrush background | ( | ) | const [inline] |
Definition at line 127 of file qlistwidget.h.
{ return qvariant_cast<QBrush>(data(Qt::BackgroundRole)); }
| void setBackground | ( | const QBrush & | brush | ) | [inline] |
Definition at line 129 of file qlistwidget.h.
{ setData(Qt::BackgroundRole, brush); }
| QColor textColor | ( | ) | const [inline] |
Definition at line 132 of file qlistwidget.h.
{ return qvariant_cast<QColor>(data(Qt::TextColorRole)); }
| void setTextColor | ( | const QColor & | color | ) | [inline] |
Definition at line 134 of file qlistwidget.h.
{ setData(Qt::TextColorRole, color); }
| QBrush foreground | ( | ) | const [inline] |
Definition at line 137 of file qlistwidget.h.
{ return qvariant_cast<QBrush>(data(Qt::ForegroundRole)); }
| void setForeground | ( | const QBrush & | brush | ) | [inline] |
Definition at line 139 of file qlistwidget.h.
{ setData(Qt::ForegroundRole, brush); }
| Qt::CheckState checkState | ( | ) | const [inline] |
Definition at line 142 of file qlistwidget.h.
{ return static_cast<Qt::CheckState>(data(Qt::CheckStateRole).toInt()); }
| void setCheckState | ( | Qt::CheckState | state | ) | [inline] |
Definition at line 144 of file qlistwidget.h.
{ setData(Qt::CheckStateRole, static_cast<int>(state)); }
| QSize sizeHint | ( | void | ) | const [inline] |
Definition at line 147 of file qlistwidget.h.
{ return qvariant_cast<QSize>(data(Qt::SizeHintRole)); }
| void setSizeHint | ( | const QSize & | size | ) | [inline] |
Definition at line 149 of file qlistwidget.h.
{ setData(Qt::SizeHintRole, size); }
| virtual QVariant data | ( | int | role | ) | const [virtual] |
| virtual void setData | ( | int | role, |
| const QVariant & | value | ||
| ) | [virtual] |
| virtual bool operator< | ( | const QListWidgetItem & | other | ) | const [virtual] |
| virtual void read | ( | QDataStream & | in | ) | [virtual] |
| virtual void write | ( | QDataStream & | out | ) | const [virtual] |
| QListWidgetItem& operator= | ( | const QListWidgetItem & | other | ) |
| int type | ( | ) | const [inline] |
friend class QListModel
[friend] |
Definition at line 65 of file qlistwidget.h.
friend class QListWidget
[friend] |
Definition at line 66 of file qlistwidget.h.