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
QFileSystemModelSorter Class Reference
+ Collaboration diagram for QFileSystemModelSorter:

Public Member Functions

 QFileSystemModelSorter (int column)
 
bool compareNodes (const QFileSystemModelPrivate::QFileSystemNode *l, const QFileSystemModelPrivate::QFileSystemNode *r) const
 
bool operator() (const QFileSystemModelPrivate::QFileSystemNode *l, const QFileSystemModelPrivate::QFileSystemNode *r) const
 

Detailed Description

Definition at line 1015 of file qfilesystemmodel.cpp.

Constructor & Destructor Documentation

◆ QFileSystemModelSorter()

QFileSystemModelSorter::QFileSystemModelSorter ( int column)
inline

Definition at line 1018 of file qfilesystemmodel.cpp.

References Qt::CaseInsensitive, QCollator::setCaseSensitivity(), and QCollator::setNumericMode().

+ Here is the call graph for this function:

Member Function Documentation

◆ compareNodes()

bool QFileSystemModelSorter::compareNodes ( const QFileSystemModelPrivate::QFileSystemNode * l,
const QFileSystemModelPrivate::QFileSystemNode * r ) const
inline

Definition at line 1024 of file qfilesystemmodel.cpp.

References QCollator::compare(), compare(), QFileSystemModelPrivate::QFileSystemNode::fileName, QFileSystemModelPrivate::QFileSystemNode::isDir(), QFileSystemModelPrivate::QFileSystemNode::lastModified(), QFileSystemModelPrivate::NameColumn, Q_ASSERT, QFileSystemModelPrivate::QFileSystemNode::size(), QFileSystemModelPrivate::SizeColumn, QFileSystemModelPrivate::TimeColumn, QFileSystemModelPrivate::QFileSystemNode::type(), QFileSystemModelPrivate::TypeColumn, and QTimeZone::UTC.

Referenced by operator()().

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

◆ operator()()

bool QFileSystemModelSorter::operator() ( const QFileSystemModelPrivate::QFileSystemNode * l,
const QFileSystemModelPrivate::QFileSystemNode * r ) const
inline

Definition at line 1074 of file qfilesystemmodel.cpp.

References compareNodes().

+ Here is the call graph for this function:

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