QCAD
Open Source 2D CAD
RFileSystemModel Class Reference

#include <RFileSystemModel.h>

Inheritance diagram for RFileSystemModel:

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 (int row, int column, const QModelIndex &parent=RDEFAULT_QMODELINDEX) const
 
bool isDir (const QModelIndex &index) const
 
QMap< int, QVariant > itemData (const QModelIndex &index) const
 
QModelIndex pathIndex (const QString &path, int column=0) const
 
bool removeRow (int row, const QModelIndex &parent=QModelIndex())
 
 RFileSystemModel (QObject *parent=0)
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 
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 QColor &value)
 
bool setItemData (const QModelIndex &index, Qt::ItemDataRole role, const QString &value)
 
void setNameFilter (const QString &filter)
 
void setNameFilterDisables (bool enable)
 
void setNameFilters (const QStringList &filters)
 
QModelIndex setRootPath (const QString &newPath)
 

Detailed Description

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RFileSystemModel()

RFileSystemModel::RFileSystemModel ( QObject *  parent = 0)

Copyright (c) 2011-2018 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

◆ canFetchMore()

bool RFileSystemModel::canFetchMore ( const QModelIndex &  parent) const

◆ data()

QVariant RFileSystemModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

◆ fetchMore()

void RFileSystemModel::fetchMore ( const QModelIndex &  parent)

◆ filePath()

QString RFileSystemModel::filePath ( const QModelIndex &  index) const

◆ index()

QModelIndex RFileSystemModel::index ( int  row,
int  column,
const QModelIndex &  parent = RDEFAULT_QMODELINDEX 
) const

◆ isDir()

bool RFileSystemModel::isDir ( const QModelIndex &  index) const

◆ itemData()

QMap< int, QVariant > RFileSystemModel::itemData ( const QModelIndex &  index) const

◆ pathIndex()

QModelIndex RFileSystemModel::pathIndex ( const QString &  path,
int  column = 0 
) const

◆ removeRow()

bool RFileSystemModel::removeRow ( int  row,
const QModelIndex &  parent = QModelIndex() 
)

◆ rootPath()

QString RFileSystemModel::rootPath ( ) const

◆ rowCount()

int RFileSystemModel::rowCount ( const QModelIndex &  parent = RDEFAULT_QMODELINDEX) const

◆ setFilter()

void RFileSystemModel::setFilter ( QDir::Filters  filters)

◆ setHeaderData() [1/2]

bool RFileSystemModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QString &  value,
int  role = Qt::EditRole 
)

◆ setHeaderData() [2/2]

bool RFileSystemModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant &  value,
int  role = Qt::EditRole 
)

◆ setIconProvider()

void RFileSystemModel::setIconProvider ( QFileIconProvider *  provider)

◆ setItemData() [1/3]

bool RFileSystemModel::setItemData ( const QModelIndex &  index,
const QMap< int, QVariant > &  roles 
)

◆ setItemData() [2/3]

bool RFileSystemModel::setItemData ( const QModelIndex &  index,
Qt::ItemDataRole  role,
const QColor &  value 
)

◆ setItemData() [3/3]

bool RFileSystemModel::setItemData ( const QModelIndex &  index,
Qt::ItemDataRole  role,
const QString &  value 
)

◆ setNameFilter()

void RFileSystemModel::setNameFilter ( const QString &  filter)

◆ setNameFilterDisables()

void RFileSystemModel::setNameFilterDisables ( bool  enable)

◆ setNameFilters()

void RFileSystemModel::setNameFilters ( const QStringList &  filters)

◆ setRootPath()

QModelIndex RFileSystemModel::setRootPath ( const QString &  newPath)

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