mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 00:05:25 +08:00
6.5.3 clean
This commit is contained in:
@ -1028,11 +1028,12 @@ void tst_QFileSystemModel::drives()
|
||||
QFileSystemModel model;
|
||||
model.setRootPath(path);
|
||||
model.fetchMore(QModelIndex());
|
||||
QFileInfoList drives = QDir::drives();
|
||||
const QFileInfoList drives = QDir::drives();
|
||||
int driveCount = 0;
|
||||
foreach(const QFileInfo& driveRoot, drives)
|
||||
for (const QFileInfo& driveRoot : drives) {
|
||||
if (driveRoot.exists())
|
||||
driveCount++;
|
||||
}
|
||||
QTRY_COMPARE(model.rowCount(), driveCount);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user