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

QMimeDatabase::mimeTypeForNameAndData looks to have bad name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.0.0 Beta 1
    • 5.0.0
    • Core: Other
    • None
    • c241d8921ea6384c30a1731a036aec8edc7609ab

      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.

        For Gerrit Dashboard: QTBUG-25748
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes