Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QFileSystemModelPrivate::QFileSystemNode Class Reference

#include <qfilesystemmodel_p.h>

+ Collaboration diagram for QFileSystemModelPrivate::QFileSystemNode:

Public Member Functions

 QFileSystemNode (const QString &filename=QString(), QFileSystemNode *p=nullptr)
 
 ~QFileSystemNode ()
 
qint64 size () const
 
QString type () const
 
QDateTime lastModified (const QTimeZone &tz) const
 
QFile::Permissions permissions () const
 
bool isReadable () const
 
bool isWritable () const
 
bool isExecutable () const
 
bool isDir () const
 
QFileInfo fileInfo () const
 
bool isFile () const
 
bool isSystem () const
 
bool isHidden () const
 
bool isSymLink (bool ignoreNtfsSymLinks=false) const
 
bool caseSensitive () const
 
QIcon icon () const
 
bool operator< (const QFileSystemNode &node) const
 
bool operator> (const QString &name) const
 
bool operator< (const QString &name) const
 
bool operator!= (const QExtendedInformation &fileInfo) const
 
bool operator== (const QString &name) const
 
bool operator== (const QExtendedInformation &fileInfo) const
 
bool hasInformation () const
 
void populate (const QExtendedInformation &fileInfo)
 
int visibleLocation (const QString &childName)
 
void updateIcon (QAbstractFileIconProvider *iconProvider, const QString &path)
 
void retranslateStrings (QAbstractFileIconProvider *iconProvider, const QString &path)
 

Public Attributes

QString fileName
 
QHash< QFileSystemModelNodePathKey, QFileSystemNode * > children
 
QList< QStringvisibleChildren
 
QExtendedInformationinfo = nullptr
 
QFileSystemNodeparent
 
int dirtyChildrenIndex = -1
 
bool populatedChildren = false
 
bool isVisible = false
 

Detailed Description

Definition at line 74 of file qfilesystemmodel_p.h.

Constructor & Destructor Documentation

◆ QFileSystemNode()

QFileSystemModelPrivate::QFileSystemNode::QFileSystemNode ( const QString & filename = QString(),
QFileSystemNode * p = nullptr )
inlineexplicit

Definition at line 79 of file qfilesystemmodel_p.h.

◆ ~QFileSystemNode()

QFileSystemModelPrivate::QFileSystemNode::~QFileSystemNode ( )
inline

Definition at line 81 of file qfilesystemmodel_p.h.

References info, and qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ caseSensitive()

bool QFileSystemModelPrivate::QFileSystemNode::caseSensitive ( ) const
inline

Definition at line 110 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelPrivate::fileSystemChanged(), and operator<().

+ Here is the caller graph for this function:

◆ fileInfo()

QFileInfo QFileSystemModelPrivate::QFileSystemNode::fileInfo ( ) const
inline

Definition at line 105 of file qfilesystemmodel_p.h.

References info.

◆ hasInformation()

bool QFileSystemModelPrivate::QFileSystemNode::hasInformation ( ) const
inline

Definition at line 140 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode(), QFileSystemModelPrivate::node(), and QFileSystemModel::timerEvent().

+ Here is the caller graph for this function:

◆ icon()

QIcon QFileSystemModelPrivate::QFileSystemNode::icon ( ) const
inline

Definition at line 111 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelPrivate::icon().

+ Here is the caller graph for this function:

◆ isDir()

bool QFileSystemModelPrivate::QFileSystemNode::isDir ( ) const
inline

Definition at line 98 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelSorter::compareNodes(), QFileSystemModelPrivate::filtersAcceptsNode(), QFileSystemModel::isDir(), QFileSystemModelPrivate::passNameFilters(), and QFileSystemModel::setNameFilters().

+ Here is the caller graph for this function:

◆ isExecutable()

bool QFileSystemModelPrivate::QFileSystemNode::isExecutable ( ) const
inline

Definition at line 97 of file qfilesystemmodel_p.h.

References QFileDevice::ExeUser.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode().

+ Here is the caller graph for this function:

◆ isFile()

bool QFileSystemModelPrivate::QFileSystemNode::isFile ( ) const
inline

Definition at line 106 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode().

+ Here is the caller graph for this function:

◆ isHidden()

bool QFileSystemModelPrivate::QFileSystemNode::isHidden ( ) const
inline

Definition at line 108 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode().

+ Here is the caller graph for this function:

◆ isReadable()

bool QFileSystemModelPrivate::QFileSystemNode::isReadable ( ) const
inline

Definition at line 95 of file qfilesystemmodel_p.h.

References QFileDevice::ReadUser.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode().

+ Here is the caller graph for this function:

◆ isSymLink()

bool QFileSystemModelPrivate::QFileSystemNode::isSymLink ( bool ignoreNtfsSymLinks = false) const
inline

Definition at line 109 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode().

+ Here is the caller graph for this function:

◆ isSystem()

bool QFileSystemModelPrivate::QFileSystemNode::isSystem ( ) const
inline

Definition at line 107 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode().

+ Here is the caller graph for this function:

◆ isWritable()

bool QFileSystemModelPrivate::QFileSystemNode::isWritable ( ) const
inline

Definition at line 96 of file qfilesystemmodel_p.h.

References QFileDevice::WriteUser.

Referenced by QFileSystemModelPrivate::filtersAcceptsNode().

+ Here is the caller graph for this function:

◆ lastModified()

QDateTime QFileSystemModelPrivate::QFileSystemNode::lastModified ( const QTimeZone & tz) const
inline

Definition at line 93 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelSorter::compareNodes().

+ Here is the caller graph for this function:

◆ operator!=()

bool QFileSystemModelPrivate::QFileSystemNode::operator!= ( const QExtendedInformation & fileInfo) const
inline

Definition at line 128 of file qfilesystemmodel_p.h.

References operator==().

+ Here is the call graph for this function:

◆ operator<() [1/2]

bool QFileSystemModelPrivate::QFileSystemNode::operator< ( const QFileSystemNode & node) const
inline

Definition at line 113 of file qfilesystemmodel_p.h.

References Qt::CaseInsensitive, caseSensitive(), QString::compare(), fileName, and fileName.

+ Here is the call graph for this function:

◆ operator<() [2/2]

bool QFileSystemModelPrivate::QFileSystemNode::operator< ( const QString & name) const
inline

Definition at line 123 of file qfilesystemmodel_p.h.

References Qt::CaseInsensitive, QString::compare(), and fileName.

+ Here is the call graph for this function:

◆ operator==() [1/2]

bool QFileSystemModelPrivate::QFileSystemNode::operator== ( const QExtendedInformation & fileInfo) const
inline

Definition at line 136 of file qfilesystemmodel_p.h.

References info.

◆ operator==() [2/2]

bool QFileSystemModelPrivate::QFileSystemNode::operator== ( const QString & name) const
inline

Definition at line 131 of file qfilesystemmodel_p.h.

References Qt::CaseInsensitive, QString::compare(), and fileName.

+ Here is the call graph for this function:

◆ operator>()

bool QFileSystemModelPrivate::QFileSystemNode::operator> ( const QString & name) const
inline

Definition at line 118 of file qfilesystemmodel_p.h.

References Qt::CaseInsensitive, QString::compare(), and fileName.

+ Here is the call graph for this function:

◆ permissions()

QFile::Permissions QFileSystemModelPrivate::QFileSystemNode::permissions ( ) const
inline

Definition at line 94 of file qfilesystemmodel_p.h.

References info.

◆ populate()

void QFileSystemModelPrivate::QFileSystemNode::populate ( const QExtendedInformation & fileInfo)
inline

Definition at line 142 of file qfilesystemmodel_p.h.

References QExtendedInformation::fileInfo(), and info.

Referenced by QFileSystemModelPrivate::addNode(), QFileSystemModelPrivate::fileSystemChanged(), QFileSystemModel::mkdir(), QFileSystemModelPrivate::node(), and QFileSystemModel::setData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retranslateStrings()

void QFileSystemModelPrivate::QFileSystemNode::retranslateStrings ( QAbstractFileIconProvider * iconProvider,
const QString & path )
inline

Definition at line 171 of file qfilesystemmodel_p.h.

References child, info, and QAbstractFileIconProvider::type().

+ Here is the call graph for this function:

◆ size()

qint64 QFileSystemModelPrivate::QFileSystemNode::size ( ) const
inline

Definition at line 91 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelSorter::compareNodes().

+ Here is the caller graph for this function:

◆ type()

QString QFileSystemModelPrivate::QFileSystemNode::type ( ) const
inline

Definition at line 92 of file qfilesystemmodel_p.h.

References info.

Referenced by QFileSystemModelSorter::compareNodes(), and QFileSystemModelPrivate::type().

+ Here is the caller graph for this function:

◆ updateIcon()

void QFileSystemModelPrivate::QFileSystemNode::updateIcon ( QAbstractFileIconProvider * iconProvider,
const QString & path )
inline

Definition at line 152 of file qfilesystemmodel_p.h.

References child, QAbstractFileIconProvider::icon(), and info.

+ Here is the call graph for this function:

◆ visibleLocation()

int QFileSystemModelPrivate::QFileSystemNode::visibleLocation ( const QString & childName)
inline

Definition at line 149 of file qfilesystemmodel_p.h.

Referenced by QFileSystemModelPrivate::fileSystemChanged(), QFileSystemModelPrivate::index(), QFileSystemModelPrivate::node(), QFileSystemModelPrivate::removeNode(), and QFileSystemModel::setData().

+ Here is the caller graph for this function:

Member Data Documentation

◆ children

◆ dirtyChildrenIndex

int QFileSystemModelPrivate::QFileSystemNode::dirtyChildrenIndex = -1

◆ fileName

◆ info

QExtendedInformation* QFileSystemModelPrivate::QFileSystemNode::info = nullptr

Definition at line 191 of file qfilesystemmodel_p.h.

◆ isVisible

bool QFileSystemModelPrivate::QFileSystemNode::isVisible = false

◆ parent

◆ populatedChildren

bool QFileSystemModelPrivate::QFileSystemNode::populatedChildren = false

Definition at line 194 of file qfilesystemmodel_p.h.

Referenced by QFileSystemModel::fetchMore().

◆ visibleChildren


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