casa::DirModel Class Reference
#include <dirmodel.qo.h>
List of all members.
Public Slots |
void | searchKeyChanged (const QString &key="") |
Public Member Functions |
| DirModel (QDir *data, QObject *parent=0) |
| ~DirModel () |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
void | writeData (QTextStream &os) |
QString | stringData () |
QString | stringData (int row) |
bool | insert (int, const QString &) |
virtual bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
virtual bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
void | appendData (const QString &lines) |
QStringList | fileType (const QString pathname) |
void | goTo (QDir *) |
Static Public Attributes |
static const QStringList | cols |
static const QColor | colors [24] |
Private Member Functions |
QColor | itemColor (const DirItem *) |
void | setupModelData (QDir *lines, DirItem *parent) |
Private Attributes |
DirItem * | insertItem |
DirItem * | rootItem |
QString | searchKey |
Detailed Description
Definition at line 44 of file dirmodel.qo.h.
Constructor & Destructor Documentation
casa::DirModel::DirModel |
( |
QDir * |
data, |
|
|
QObject * |
parent = 0 | |
|
) |
| | |
casa::DirModel::~DirModel |
( |
|
) |
|
Member Function Documentation
void casa::DirModel::appendData |
( |
const QString & |
lines |
) |
|
int casa::DirModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() |
) |
const |
QVariant casa::DirModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role | |
|
) |
| | const |
QStringList casa::DirModel::fileType |
( |
const QString |
pathname |
) |
|
Qt::ItemFlags casa::DirModel::flags |
( |
const QModelIndex & |
index |
) |
const |
void casa::DirModel::goTo |
( |
QDir * |
|
) |
|
QVariant casa::DirModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole | |
|
) |
| | const |
QModelIndex casa::DirModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() | |
|
) |
| | const |
bool casa::DirModel::insert |
( |
int |
, |
|
|
const QString & |
| |
|
) |
| | |
virtual bool casa::DirModel::insertRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() | |
|
) |
| | [virtual] |
QColor casa::DirModel::itemColor |
( |
const DirItem * |
|
) |
[private] |
QModelIndex casa::DirModel::parent |
( |
const QModelIndex & |
index |
) |
const |
virtual bool casa::DirModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() | |
|
) |
| | [virtual] |
int casa::DirModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() |
) |
const |
void casa::DirModel::searchKeyChanged |
( |
const QString & |
key = "" |
) |
[slot] |
void casa::DirModel::setupModelData |
( |
QDir * |
lines, |
|
|
DirItem * |
parent | |
|
) |
| | [private] |
QString casa::DirModel::stringData |
( |
int |
row |
) |
|
QString casa::DirModel::stringData |
( |
|
) |
|
void casa::DirModel::writeData |
( |
QTextStream & |
os |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: