1 #ifndef RFILESYSTEMMODEL_H_
2 #define RFILESYSTEMMODEL_H_
4 #include <QFileSystemModel>
6 #define RDEFAULT_QMODELINDEX QModelIndex()
20 QModelIndex
index(
const QString& path,
int column = 0)
const;
21 QModelIndex
index(
int row,
int column,
const QModelIndex & parent =
23 QString
filePath(
const QModelIndex& index)
const;
25 bool isDir(
const QModelIndex& index)
const;
27 const QString& value,
int role = Qt::EditRole);
29 const QVariant& value,
int role = Qt::EditRole);
36 const QMap<int, QVariant>& roles);
37 bool setItemData(
const QModelIndex& index, Qt::ItemDataRole role,
38 const QString& value);
39 bool setItemData(
const QModelIndex& index, Qt::ItemDataRole role,
41 QMap<int, QVariant>
itemData(
const QModelIndex & index)
const;
43 void fetchMore(
const QModelIndex & parent);
44 virtual QVariant
data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const;
45 bool removeRow(
int row,
const QModelIndex & parent = QModelIndex());