RFileSystemModel
Class in GUI Module
Header: #include <src/gui/RFileSystemModel.h>
Inherits: QFileSystemModel
Description
Section titled “Description”Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”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) |
Member Documentation
Section titled “Member Documentation”RFileSystemModel
Section titled “RFileSystemModel”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.
canFetchMore
Section titled “canFetchMore”bool RFileSystemModel::canFetchMore(const QModelIndex &parent) constconst
virtual QVariant RFileSystemModel::data(const QModelIndex &index, int role=Qt::DisplayRole) constvirtual const
fetchMore
Section titled “fetchMore”void RFileSystemModel::fetchMore(const QModelIndex &parent)filePath
Section titled “filePath”QString RFileSystemModel::filePath(const QModelIndex &index) constconst
QModelIndex RFileSystemModel::index(int row, int column, const QModelIndex &parent=RDEFAULT_QMODELINDEX) constconst
bool RFileSystemModel::isDir(const QModelIndex &index) constconst
itemData
Section titled “itemData”QMap< int, QVariant > RFileSystemModel::itemData(const QModelIndex &index) constconst
pathIndex
Section titled “pathIndex”QModelIndex RFileSystemModel::pathIndex(const QString &path, int column=0) constconst
removeRow
Section titled “removeRow”bool RFileSystemModel::removeRow(int row, const QModelIndex &parent=QModelIndex())rootPath
Section titled “rootPath”QString RFileSystemModel::rootPath() constconst
rowCount
Section titled “rowCount”int RFileSystemModel::rowCount(const QModelIndex &parent=RDEFAULT_QMODELINDEX) constconst
setFilter
Section titled “setFilter”void RFileSystemModel::setFilter(QDir::Filters filters)setHeaderData
Section titled “setHeaderData”bool RFileSystemModel::setHeaderData(int section, Qt::Orientation orientation, const QString &value, int role=Qt::EditRole)setHeaderData
Section titled “setHeaderData”bool RFileSystemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)setIconProvider
Section titled “setIconProvider”void RFileSystemModel::setIconProvider(QFileIconProvider *provider)setItemData
Section titled “setItemData”bool RFileSystemModel::setItemData(const QModelIndex &index, const QMap< int, QVariant > &roles)setItemData
Section titled “setItemData”bool RFileSystemModel::setItemData(const QModelIndex &index, Qt::ItemDataRole role, const QColor &value)setItemData
Section titled “setItemData”bool RFileSystemModel::setItemData(const QModelIndex &index, Qt::ItemDataRole role, const QString &value)setNameFilter
Section titled “setNameFilter”void RFileSystemModel::setNameFilter(const QString &filter)setNameFilterDisables
Section titled “setNameFilterDisables”void RFileSystemModel::setNameFilterDisables(bool enable)setNameFilters
Section titled “setNameFilters”void RFileSystemModel::setNameFilters(const QStringList &filters)setRootPath
Section titled “setRootPath”QModelIndex RFileSystemModel::setRootPath(const QString &newPath)