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

Sorting for attributes on save

    XMLWordPrintable

Details

    Description

      As QHash is used, attributes come out in a random order. This easily causes other software handle files as text, such as versioning systems, see them as changed.

      Now this can be worked around with qSetGlobalQHashSeed or QT_HASH_SEED, but that is global setting.

      Instead a simple alternate save() function or a property to tell if it should save in the same way. Probably easiest would be to simply sort all attributes by their name before writing them.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes