ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Protected Attributes | List of all members
FileModel Class Reference

#include <filemodel.h>

Inheritance diagram for FileModel:
Inheritance graph
[legend]
Collaboration diagram for FileModel:
Collaboration graph
[legend]

Public Slots

void setRootIndex (const QModelIndex &index)
 
void setRootIndex (Item *item)
 
void setThumbWidth (int size)
 
void initMetadata (Item *i)
 
void prepareForUpdate ()
 

Signals

void requestColumnResize ()
 

Public Member Functions

 FileModel (QObject *parent=0)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &index) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
 
QModelIndex mapToSource (const QModelIndex &proxyIndex) const
 
QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
ItemgetRootItem ()
 
void setPreviewWidth (int size)
 

Protected Attributes

ItemrootItem
 
ItemformalRootItem
 

Constructor & Destructor Documentation

FileModel::FileModel ( QObject *  parent = 0)
explicit

Member Function Documentation

int FileModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant FileModel::data ( const QModelIndex &  index,
int  role 
) const

When the rootItem is changed, old signals may still be in queue and accessing non-existent items caused crash.

Qt::ItemFlags FileModel::flags ( const QModelIndex &  index) const
Item * FileModel::getRootItem ( )
QVariant FileModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
QModelIndex FileModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
void FileModel::initMetadata ( Item i)
slot
QModelIndex FileModel::mapFromSource ( const QModelIndex &  sourceIndex) const
QModelIndex FileModel::mapToSource ( const QModelIndex &  proxyIndex) const
QModelIndex FileModel::parent ( const QModelIndex &  index) const
void FileModel::prepareForUpdate ( )
slot
void FileModel::requestColumnResize ( )
signal
int FileModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
bool FileModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
bool FileModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant &  value,
int  role = Qt::EditRole 
)
void FileModel::setPreviewWidth ( int  size)
void FileModel::setRootIndex ( const QModelIndex &  index)
slot
void FileModel::setRootIndex ( Item item)
slot
void FileModel::setThumbWidth ( int  size)
slot

Member Data Documentation

Item* FileModel::formalRootItem
protected
Item* FileModel::rootItem
protected

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