#include <klfflowlistwidget.h>
Public Slots | |
void | setItems (const QStringList &strings, const QVariantList &datalist=QVariantList()) |
void | addItem (const QString &string, const QVariant &data=QVariant()) |
void | removeItem (int i) |
void | insertItem (int i, const QString &s, const QVariant &data=QVariant()) |
Signals | |
void | itemActivated (const QString &s, const QVariant &data) |
void | itemActivated (int i, const QString &s, const QVariant &data) |
Public Member Functions | |
KLFFlowListWidget (QWidget *parent=NULL) | |
virtual | ~KLFFlowListWidget () |
int | itemCount () const |
QString | itemAt (int i) const |
QVariant | itemDataAt (int i) const |
QStringList | itemList () const |
QVariantList | itemDataList () const |
Definition at line 34 of file klfflowlistwidget.h.
KLFFlowListWidget::KLFFlowListWidget | ( | QWidget * | parent = NULL | ) |
Definition at line 34 of file klfflowlistwidget.cpp.
References KLFFlowLayout::FlushBegin, and KLFFlowLayout::setFlush().
KLFFlowListWidget::~KLFFlowListWidget | ( | ) | [virtual] |
Definition at line 43 of file klfflowlistwidget.cpp.
void KLFFlowListWidget::addItem | ( | const QString & | string, |
const QVariant & | data = QVariant() |
||
) | [slot] |
Definition at line 98 of file klfflowlistwidget.cpp.
References insertItem().
Referenced by setItems().
void KLFFlowListWidget::insertItem | ( | int | i, |
const QString & | s, | ||
const QVariant & | data = QVariant() |
||
) | [slot] |
Definition at line 114 of file klfflowlistwidget.cpp.
References KLFFlowLayout::addWidget(), QList::insert(), KLF_ASSERT_CONDITION, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, and QList::size().
Referenced by addItem().
void KLFFlowListWidget::itemActivated | ( | const QString & | s, |
const QVariant & | data | ||
) | [signal] |
void KLFFlowListWidget::itemActivated | ( | int | i, |
const QString & | s, | ||
const QVariant & | data | ||
) | [signal] |
QString KLFFlowListWidget::itemAt | ( | int | i | ) | const |
Definition at line 48 of file klfflowlistwidget.cpp.
References KLF_ASSERT_CONDITION, and QList::size().
Referenced by itemList().
int KLFFlowListWidget::itemCount | ( | ) | const [inline] |
Definition at line 41 of file klfflowlistwidget.h.
References QList::size().
QVariant KLFFlowListWidget::itemDataAt | ( | int | i | ) | const |
Definition at line 55 of file klfflowlistwidget.cpp.
References KLF_ASSERT_CONDITION, and QList::size().
Referenced by itemDataList().
QVariantList KLFFlowListWidget::itemDataList | ( | ) | const |
Definition at line 72 of file klfflowlistwidget.cpp.
References itemDataAt(), and QList::size().
QStringList KLFFlowListWidget::itemList | ( | ) | const |
Definition at line 63 of file klfflowlistwidget.cpp.
References itemAt(), and QList::size().
void KLFFlowListWidget::removeItem | ( | int | i | ) | [slot] |
Definition at line 103 of file klfflowlistwidget.cpp.
References KLF_ASSERT_CONDITION, QList::removeAt(), and QList::size().
void KLFFlowListWidget::setItems | ( | const QStringList & | strings, |
const QVariantList & | datalist = QVariantList() |
||
) | [slot] |
Definition at line 82 of file klfflowlistwidget.cpp.
References addItem(), KLF_ASSERT_CONDITION, QList::size(), and QList::takeAt().