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

QMimeDatabase::mimeTypeForNameAndData looks to have bad name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.0 Beta 1
    • Component/s: Core: Other
    • Labels:
      None
    • Commits:
      c241d8921ea6384c30a1731a036aec8edc7609ab

      Description

      According to the documentation QMimeDatabase::mimeTypeForNameAndData take a fileName or a data.
      But it exists a mimeTypeForName that take the name of the mime type (not fileName), and a mimeTypeForFile tha take a fileName.
      This make the api inconsistent, it will better to rename it QMimeDatabase::mimeTypeForFileAndData.

        Attachments

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

          Activity

            People

            Assignee:
            dfaure David Faure (Private)
            Reporter:
            pasnox Filipe Azevedo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes