Class sh::filesystem::FilesystemModelSubtreeProxy¶
-
class
sh::filesystem
::
FilesystemModelSubtreeProxy
: public QAbstractItemModel¶ A filesystem proxy model for setting a new root node to an existing fileview proxy.
Used internally, mostly for the user interface.
Public Functions
-
FilesystemModelSubtreeProxy
(QModelIndex root, sh::filesystem::FilesystemModelFileviewProxy *upperproxy)¶ Constructed only indirectly.
-
QVariant
data
(const QModelIndex &index, int role) const¶
-
Qt::ItemFlags
flags
(const QModelIndex &index) const¶
-
QVariant
headerData
(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const¶
-
QModelIndex
index
(int row, int column, const QModelIndex &parent = QModelIndex()) const¶
-
QModelIndex
parent
(const QModelIndex &index) const¶
-
int
rowCount
(const QModelIndex &parent = QModelIndex()) const¶
-
int
columnCount
(const QModelIndex &parent = QModelIndex()) const¶
-
QModelIndex
mapFromSource
(const QModelIndex mi) const¶
-
QModelIndex
mapToSource
(const QModelIndex mi) const¶
Signals
Private Members
-
bool
_inChangeTransaction
¶
-
std::shared_ptr<sh::filesystem::FilesystemNode>
_rootnode
¶
-
QPersistentModelIndex
_rootindex
¶
-
sh::filesystem::FilesystemModel *
mainmodel
¶
-
sh::filesystem::FilesystemModelFileviewProxy *
_upperproxy
¶
-