QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RFileSystemModel Class Reference

#include <RFileSystemModel.h>

List of all members.

Public Member Functions

bool canFetchMore (const QModelIndex &parent) const
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
void fetchMore (const QModelIndex &parent)
QString filePath (const QModelIndex &index) const
QModelIndex index (const QString &path, int column=0) const
QModelIndex index (int row, int column, const QModelIndex &parent=RDEFAULT_QMODELINDEX) const
bool isDir (const QModelIndex &index) const
QMap< int, QVariant > itemData (const QModelIndex &index) const
bool removeRow (int row, const QModelIndex &parent=QModelIndex())
 RFileSystemModel (QObject *parent=0)
 Copyright (c) 2011-2014 by Andrew Mustun.
QString rootPath () const
int rowCount (const QModelIndex &parent=RDEFAULT_QMODELINDEX) const
void setFilter (QDir::Filters filters)
bool setHeaderData (int section, Qt::Orientation orientation, const QString &value, int role=Qt::EditRole)
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
void setIconProvider (QFileIconProvider *provider)
bool setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles)
bool setItemData (const QModelIndex &index, Qt::ItemDataRole role, const QString &value)
bool setItemData (const QModelIndex &index, Qt::ItemDataRole role, const QColor &value)
void setNameFilter (const QString &filter)
void setNameFilterDisables (bool enable)
void setNameFilters (const QStringList &filters)
QModelIndex setRootPath (const QString &newPath)

Detailed Description

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

RFileSystemModel::RFileSystemModel ( QObject *  parent = 0)

Copyright (c) 2011-2014 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.


Member Function Documentation

bool RFileSystemModel::canFetchMore ( const QModelIndex &  parent) const
QVariant RFileSystemModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual
void RFileSystemModel::fetchMore ( const QModelIndex &  parent)
QString RFileSystemModel::filePath ( const QModelIndex &  index) const
QModelIndex RFileSystemModel::index ( const QString &  path,
int  column = 0 
) const
QModelIndex RFileSystemModel::index ( int  row,
int  column,
const QModelIndex &  parent = RDEFAULT_QMODELINDEX 
) const
bool RFileSystemModel::isDir ( const QModelIndex &  index) const
QMap< int, QVariant > RFileSystemModel::itemData ( const QModelIndex &  index) const
bool RFileSystemModel::removeRow ( int  row,
const QModelIndex &  parent = QModelIndex() 
)
QString RFileSystemModel::rootPath ( ) const
int RFileSystemModel::rowCount ( const QModelIndex &  parent = RDEFAULT_QMODELINDEX) const
void RFileSystemModel::setFilter ( QDir::Filters  filters)
bool RFileSystemModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QString &  value,
int  role = Qt::EditRole 
)
bool RFileSystemModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant &  value,
int  role = Qt::EditRole 
)
void RFileSystemModel::setIconProvider ( QFileIconProvider *  provider)
bool RFileSystemModel::setItemData ( const QModelIndex &  index,
const QMap< int, QVariant > &  roles 
)
bool RFileSystemModel::setItemData ( const QModelIndex &  index,
Qt::ItemDataRole  role,
const QString &  value 
)
bool RFileSystemModel::setItemData ( const QModelIndex &  index,
Qt::ItemDataRole  role,
const QColor &  value 
)
void RFileSystemModel::setNameFilter ( const QString &  filter)
void RFileSystemModel::setNameFilterDisables ( bool  enable)
void RFileSystemModel::setNameFilters ( const QStringList &  filters)
QModelIndex RFileSystemModel::setRootPath ( const QString &  newPath)

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