Skip to content

RFileSystemModel

Class in GUI Module
Header: #include <src/gui/RFileSystemModel.h>
Inherits: QFileSystemModel

Scriptable: This class is available in script environments.

RFileSystemModel(QObject *parent=0)
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())
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)

RFileSystemModel::RFileSystemModel(QObject *parent=0)

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.

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

const

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

virtual const

void RFileSystemModel::fetchMore(const QModelIndex &parent)

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

const

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

const

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

const

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

const

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

const

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

QString RFileSystemModel::rootPath() const

const

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

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 QColor &value)

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

void RFileSystemModel::setNameFilter(const QString &filter)

void RFileSystemModel::setNameFilterDisables(bool enable)

void RFileSystemModel::setNameFilters(const QStringList &filters)

QModelIndex RFileSystemModel::setRootPath(const QString &newPath)