Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19519

QDir::Filter documentation is lacking the enum PermissionMask

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.7.3
    • Documentation
    • None
    • Qt 4.7.3, Windows

    Description

      QDir::Filter enum should state that QDir::PermissionMask has to be used with QDir::Readable in http://doc.qt.nokia.com/latest/qdir.html#Filter-enum. The documentation is lacking the QDir::PermissionMask entirely.

      Setting the following filter to QFileSystemModel doesn't show any files of folders
      modelIndex->setFilter(QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot | QDir::Readable);
      but adding QDir::PermissionMask shows the desired files
      modelIndex->setFilter(QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot | QDir::Readable | QDir::PermissionMask);

      Attachments

        1. main.cpp
          3 kB
          Titta Heikkala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dm Geir Vattekar
            tiheikka Titta Heikkala
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes