Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
4.7.4, 4.8.2
-
None
Description
Currently (even for Qt-5), the code look like that:
inline QString QFileSystemModel::fileName(const QModelIndex &aindex) const
However, the implementation of the data() method uses a different role:
case FileNameRole:
return d->name(index);
So the filename() method fails whenever the column in aindex is not zero.
The corrected method should look like:
inline QString QFileSystemModel::fileName(const QModelIndex &aindex) const