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
QQuickFolderListModelPrivate Class Reference

[code] More...

+ Collaboration diagram for QQuickFolderListModelPrivate:

Public Member Functions

 QQuickFolderListModelPrivate (QQuickFolderListModel *q)
 
 ~QQuickFolderListModelPrivate ()
 
void init ()
 
void updateSorting ()
 
void _q_directoryChanged (const QString &directory, const QList< FileProperty > &list)
 
void _q_directoryUpdated (const QString &directory, const QList< FileProperty > &list, int fromIndex, int toIndex)
 
void _q_sortFinished (const QList< FileProperty > &list)
 
void _q_statusChanged (QQuickFolderListModel::Status s)
 

Static Public Member Functions

static QString resolvePath (const QUrl &path)
 

Public Attributes

QQuickFolderListModelq_ptr
 
QUrl currentDir
 
QUrl rootDir
 
FileInfoThread fileInfoThread
 
QList< FilePropertydata
 
QHash< int, QByteArrayroleNames
 
QQuickFolderListModel::SortField sortField = QQuickFolderListModel::Name
 
QStringList nameFilters = { QLatin1String("*") }
 
QQuickFolderListModel::Status status = QQuickFolderListModel::Null
 
bool sortReversed = false
 
bool showFiles = true
 
bool showDirs = true
 
bool showDirsFirst = false
 
bool showDotAndDotDot = false
 
bool showOnlyReadable = false
 
bool showHidden = false
 
bool caseSensitive = true
 
bool sortCaseSensitive = true
 

Detailed Description

[code]

Definition at line 16 of file qquickfolderlistmodel.cpp.

Constructor & Destructor Documentation

◆ QQuickFolderListModelPrivate()

QQuickFolderListModelPrivate::QQuickFolderListModelPrivate ( QQuickFolderListModel * q)
inline

Definition at line 21 of file qquickfolderlistmodel.cpp.

◆ ~QQuickFolderListModelPrivate()

QQuickFolderListModelPrivate::~QQuickFolderListModelPrivate ( )
inline

Definition at line 42 of file qquickfolderlistmodel.cpp.

Member Function Documentation

◆ _q_directoryChanged()

void QQuickFolderListModelPrivate::_q_directoryChanged ( const QString & directory,
const QList< FileProperty > & list )

Definition at line 107 of file qquickfolderlistmodel.cpp.

References directory, emit, list, Q_UNUSED, and qCDebug.

Referenced by init().

+ Here is the caller graph for this function:

◆ _q_directoryUpdated()

void QQuickFolderListModelPrivate::_q_directoryUpdated ( const QString & directory,
const QList< FileProperty > & list,
int fromIndex,
int toIndex )

Definition at line 121 of file qquickfolderlistmodel.cpp.

References directory, emit, list, Q_UNUSED, QList< T >::size(), and toIndex().

Referenced by init().

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

◆ _q_sortFinished()

void QQuickFolderListModelPrivate::_q_sortFinished ( const QList< FileProperty > & list)

Definition at line 152 of file qquickfolderlistmodel.cpp.

References list, qCDebug, and QList< T >::size().

Referenced by init().

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

◆ _q_statusChanged()

void QQuickFolderListModelPrivate::_q_statusChanged ( QQuickFolderListModel::Status s)

Definition at line 173 of file qquickfolderlistmodel.cpp.

References emit, and status.

Referenced by init().

+ Here is the caller graph for this function:

◆ init()

void QQuickFolderListModelPrivate::init ( )

Definition at line 56 of file qquickfolderlistmodel.cpp.

References _q_directoryChanged(), _q_directoryUpdated(), _q_sortFinished(), _q_statusChanged(), fileInfoThread, SIGNAL, SLOT, and statusChanged().

+ Here is the call graph for this function:

◆ resolvePath()

QString QQuickFolderListModelPrivate::resolvePath ( const QUrl & path)
static

Definition at line 183 of file qquickfolderlistmodel.cpp.

References QDir::cleanPath(), and QQmlFile::urlToLocalFileOrQrc().

Referenced by QQuickFolderListModel::setFolder(), and QQuickFolderListModel::setRootFolder().

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

◆ updateSorting()

void QQuickFolderListModelPrivate::updateSorting ( )

Member Data Documentation

◆ caseSensitive

bool QQuickFolderListModelPrivate::caseSensitive = true

Definition at line 39 of file qquickfolderlistmodel.cpp.

◆ currentDir

QUrl QQuickFolderListModelPrivate::currentDir

Definition at line 24 of file qquickfolderlistmodel.cpp.

◆ data

QList<FileProperty> QQuickFolderListModelPrivate::data

Definition at line 27 of file qquickfolderlistmodel.cpp.

◆ fileInfoThread

FileInfoThread QQuickFolderListModelPrivate::fileInfoThread

Definition at line 26 of file qquickfolderlistmodel.cpp.

Referenced by init(), and updateSorting().

◆ nameFilters

QStringList QQuickFolderListModelPrivate::nameFilters = { QLatin1String("*") }

Definition at line 30 of file qquickfolderlistmodel.cpp.

◆ q_ptr

QQuickFolderListModel* QQuickFolderListModelPrivate::q_ptr

Definition at line 23 of file qquickfolderlistmodel.cpp.

◆ roleNames

QHash<int, QByteArray> QQuickFolderListModelPrivate::roleNames

Definition at line 28 of file qquickfolderlistmodel.cpp.

◆ rootDir

QUrl QQuickFolderListModelPrivate::rootDir

Definition at line 25 of file qquickfolderlistmodel.cpp.

◆ showDirs

bool QQuickFolderListModelPrivate::showDirs = true

Definition at line 34 of file qquickfolderlistmodel.cpp.

◆ showDirsFirst

bool QQuickFolderListModelPrivate::showDirsFirst = false

Definition at line 35 of file qquickfolderlistmodel.cpp.

◆ showDotAndDotDot

bool QQuickFolderListModelPrivate::showDotAndDotDot = false

Definition at line 36 of file qquickfolderlistmodel.cpp.

◆ showFiles

bool QQuickFolderListModelPrivate::showFiles = true

Definition at line 33 of file qquickfolderlistmodel.cpp.

◆ showHidden

bool QQuickFolderListModelPrivate::showHidden = false

Definition at line 38 of file qquickfolderlistmodel.cpp.

◆ showOnlyReadable

bool QQuickFolderListModelPrivate::showOnlyReadable = false

Definition at line 37 of file qquickfolderlistmodel.cpp.

◆ sortCaseSensitive

bool QQuickFolderListModelPrivate::sortCaseSensitive = true

Definition at line 40 of file qquickfolderlistmodel.cpp.

Referenced by updateSorting().

◆ sortField

QQuickFolderListModel::SortField QQuickFolderListModelPrivate::sortField = QQuickFolderListModel::Name

Definition at line 29 of file qquickfolderlistmodel.cpp.

Referenced by updateSorting().

◆ sortReversed

bool QQuickFolderListModelPrivate::sortReversed = false

Definition at line 32 of file qquickfolderlistmodel.cpp.

Referenced by updateSorting().

◆ status

QQuickFolderListModel::Status QQuickFolderListModelPrivate::status = QQuickFolderListModel::Null

Definition at line 31 of file qquickfolderlistmodel.cpp.

Referenced by _q_statusChanged().


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