casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
casa::DirModel Class Reference

#include <dirmodel.qo.h>

Inheritance diagram for casa::DirModel:

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

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() 
QColor casa::DirModel::itemColor ( const DirItem )
QModelIndex casa::DirModel::parent ( const QModelIndex &  index) const
virtual bool casa::DirModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
int casa::DirModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
void casa::DirModel::searchKeyChanged ( const QString &  key = "")
void casa::DirModel::setupModelData ( QDir *  lines,
DirItem parent 
QString casa::DirModel::stringData ( )
QString casa::DirModel::stringData ( int  row)
void casa::DirModel::writeData ( QTextStream &  os)

Member Data Documentation

const QColor casa::DirModel::colors[24]

Definition at line 53 of file dirmodel.qo.h.

const QStringList casa::DirModel::cols

Definition at line 52 of file dirmodel.qo.h.

DirItem* casa::DirModel::insertItem

Definition at line 79 of file dirmodel.qo.h.

DirItem* casa::DirModel::rootItem

Definition at line 80 of file dirmodel.qo.h.

QString casa::DirModel::searchKey

Definition at line 81 of file dirmodel.qo.h.

The documentation for this class was generated from the following file: