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

Use QDirListingPrivate, not QDirListing, in e.g. QDir implementation

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • Core: I/O
    • None

      See epic for a description.

      This task is about code like this:

          QDirListing dirList(d->dirEntry.filePath(), nameFilters, filters.toInt());
          QStringList ret;
          if (needsSorting) {
              QFileInfoList l;
              for (const auto &dirEntry : dirList)
                  l.emplace_back(dirEntry.fileInfo());
              d->sortFileList(sort, l, &ret, nullptr);
          } else {
              for (const auto &dirEntry : dirList)
                  ret.emplace_back(dirEntry.fileName());
          }
      

      (there's bound to be more), which could just use QDirListingPrivate instead.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ahmad.samir Ahmad Samir
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes