diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-10-26 16:07:15 +0300 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-12-06 18:55:08 +0300 |
commit | 5038e1eb650e5661c8e9e497f84715679e5161a8 (patch) | |
tree | 598c04e62ef249d66dee94c5a986326d2d2b5c3f /src/gui/itemmodels/qfilesystemmodel.cpp | |
parent | 3cd69050ff3187dad8c3a9b50dcc9ac9d5b60f84 (diff) |
QFileInfoGatherer: port away from QPair
Task-number: QTBUG-115841
Change-Id: I06c39140fb9afbbe6352af1025387d1890ca2730
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/itemmodels/qfilesystemmodel.cpp')
-rw-r--r-- | src/gui/itemmodels/qfilesystemmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemmodels/qfilesystemmodel.cpp b/src/gui/itemmodels/qfilesystemmodel.cpp index 3c52f27f73..f8810366df 100644 --- a/src/gui/itemmodels/qfilesystemmodel.cpp +++ b/src/gui/itemmodels/qfilesystemmodel.cpp @@ -1913,7 +1913,7 @@ void QFileSystemModelPrivate::removeVisibleFile(QFileSystemNode *parentNode, int update and emit dataChanged if it has actually changed. */ void QFileSystemModelPrivate::_q_fileSystemChanged(const QString &path, - const QList<QPair<QString, QFileInfo>> &updates) + const QList<std::pair<QString, QFileInfo>> &updates) { #if QT_CONFIG(filesystemwatcher) Q_Q(QFileSystemModel); @@ -2081,7 +2081,7 @@ void QFileSystemModelPrivate::init() delayedSortTimer.setSingleShot(true); - qRegisterMetaType<QList<QPair<QString, QFileInfo>>>(); + qRegisterMetaType<QList<std::pair<QString, QFileInfo>>>(); #if QT_CONFIG(filesystemwatcher) q->connect(&fileInfoGatherer, SIGNAL(newListOfFiles(QString,QStringList)), q, SLOT(_q_directoryChanged(QString,QStringList))); |