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

avoid creating QFileInfo objects when constructing QImage

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None

    Description

      In QImageReader::read(QImage *image)
      QFileInfo object is constructed just to get a part of the filename.

      so i suggest changing the following code:
      QFileInfo(fileName()).baseName().endsWith(QLatin1String("@2x"))
      change to:
      fileName().leftRef(fileName().lastIndexOf('.')).endsWith(QLatin1String("@2x"))

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            shaforostov Mykola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes