jovie
#include <talkerlistmodel.h>
Public Member Functions | |
TalkerListModel (TalkerCode::TalkerCodeList talkers=TalkerCode::TalkerCodeList(), QObject *parent=0) | |
bool | appendRow (TalkerCode &talker) |
void | clear () |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role) const |
const TalkerCode::TalkerCodeList | datastore () const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
TalkerCode | getRow (int row) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
void | loadTalkerCodesFromConfig (KConfig *config) |
QModelIndex | parent (const QModelIndex &index) const |
bool | removeRow (int row, const QModelIndex &parent=QModelIndex()) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
void | setDatastore (TalkerCode::TalkerCodeList talkers=TalkerCode::TalkerCodeList()) |
bool | swap (int i, int j) |
bool | updateRow (int row, TalkerCode &talker) |
Detailed Description
Model for list of configured talkers.
Intended for use with talkerList QTreeView. Each row of the displayed view corresponds to a TalkerCode in the model.
Definition at line 45 of file talkerlistmodel.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 52 of file talkerlistmodel.cpp.
Member Function Documentation
bool TalkerListModel::appendRow | ( | TalkerCode & | talker | ) |
Adds a new row to the model/view containing the specified TalkerCode.
Definition at line 165 of file talkerlistmodel.cpp.
void TalkerListModel::clear | ( | ) |
Clears the model/view.
Definition at line 187 of file talkerlistmodel.cpp.
int TalkerListModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 66 of file talkerlistmodel.cpp.
QVariant TalkerListModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 86 of file talkerlistmodel.cpp.
|
inline |
The list of TalkerCodes for this model.
Definition at line 65 of file talkerlistmodel.h.
Qt::ItemFlags TalkerListModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 118 of file talkerlistmodel.cpp.
TalkerCode TalkerListModel::getRow | ( | int | row | ) | const |
Returns the TalkerCode for a specified row of the model/view.
Definition at line 157 of file talkerlistmodel.cpp.
QVariant TalkerListModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 126 of file talkerlistmodel.cpp.
QModelIndex TalkerListModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
Definition at line 72 of file talkerlistmodel.cpp.
void TalkerListModel::loadTalkerCodesFromConfig | ( | KConfig * | config | ) |
Loads the TalkerCodes into the model/view from the config file.
- Parameters
-
config Pointer to KConfig object holding the config file info.
Definition at line 193 of file talkerlistmodel.cpp.
QModelIndex TalkerListModel::parent | ( | const QModelIndex & | index | ) | const |
Definition at line 80 of file talkerlistmodel.cpp.
bool TalkerListModel::removeRow | ( | int | row, |
const QModelIndex & | parent = QModelIndex() |
||
) |
Definition at line 143 of file talkerlistmodel.cpp.
int TalkerListModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 58 of file talkerlistmodel.cpp.
void TalkerListModel::setDatastore | ( | TalkerCode::TalkerCodeList | talkers = TalkerCode::TalkerCodeList() | ) |
Definition at line 151 of file talkerlistmodel.cpp.
bool TalkerListModel::swap | ( | int | i, |
int | j | ||
) |
Swaps two rows of the model/view.
Definition at line 180 of file talkerlistmodel.cpp.
bool TalkerListModel::updateRow | ( | int | row, |
TalkerCode & | talker | ||
) |
Updates a row of the model/view with information from specified TalkerCode.
Definition at line 173 of file talkerlistmodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.