kpilot
KeyringListModel Class Reference
#include <keyringlistmodel.h>
Inheritance diagram for KeyringListModel:

Detailed Description
Definition at line 34 of file keyringlistmodel.h.
Public Member Functions | |
| bool | addRecord (KeyringHHRecord *record) |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| KeyringListModel (KeyringHHDataProxy *proxy, QObject *parent=0) | |
| KeyringHHRecord * | record (const QModelIndex &index) |
| bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Constructor & Destructor Documentation
| KeyringListModel::KeyringListModel | ( | KeyringHHDataProxy * | proxy, | |
| QObject * | parent = 0 | |||
| ) | [explicit] |
KeyringListModel does not take over owner ship of proxy and does not delete the proxy or pointers to records when it gets deleted.
Definition at line 36 of file keyringlistmodel.cc.
Member Function Documentation
| bool KeyringListModel::addRecord | ( | KeyringHHRecord * | record | ) |
Definition at line 115 of file keyringlistmodel.cc.
| QVariant KeyringListModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const |
Returns the data stored under the given role for the item referred to by the index.
Definition at line 59 of file keyringlistmodel.cc.
| QVariant KeyringListModel::headerData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| int | role = Qt::DisplayRole | |||
| ) | const |
Definition at line 79 of file keyringlistmodel.cc.
| KeyringHHRecord * KeyringListModel::record | ( | const QModelIndex & | index | ) |
Definition at line 128 of file keyringlistmodel.cc.
| bool KeyringListModel::removeRows | ( | int | row, | |
| int | count, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) |
Definition at line 91 of file keyringlistmodel.cc.
| int KeyringListModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Returns the number of rows under the given parent.
Definition at line 53 of file keyringlistmodel.cc.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference