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

Provide a way to map QLocale::Country values to ISO 3166 country codes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 6.1.0 FF
    • None
    • Core: Locales (i18n)
    • None
    • f1465c621c11712991fabe5b8b81ccbb6eea4bb9

    Description

      QTimeZone::country currently returns an entry from the QLocale::Country enum. That in it's own is fine and should not change.

      I would like to suggest a second function that returns a ISO 3166 country name (as string).
      Internally, QTimeZone (the private parts) seem to have the knowledge about the country codes, it's just not exposed. QTimeZone itself (the tz backend that is, don't know for the others) has it when it parses the zone.tab file.

      Attachments

        Issue Links

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

          Activity

            People

              kkohne Kai Köhne
              markg85 Mark
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes