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

qsTr(): get rid of QFileInfo dependency

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Out of scope
    • Icon: P5: Not important P5: Not important
    • None
    • None
    • Qt Script
    • None

      After the translation context caching introduced in the fix for QTBUG-6908, there is still room for improvement: Don't construct a QFileInfo at all.
      This would avoid the expensive file engine creation, and possibly some QString <--> JSC::UString conversion.
      Just need to make sure that the result is exactly the same as QFileInfo::baseName() would produce for any given filename, on all supported platforms.

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

            kenthans Kent Hansen (Inactive)
            kenthans Kent Hansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes