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

Preventing QString class properties from being translated

    XMLWordPrintable

Details

    Description

      Class property values of QString type, specified with the Q_PROPERTY macro, get marked for translation by uic when they are set via Designer (or other GUI builder). When the setter function of the property is called, the string is enclosed in the tr() function. Sometimes, however, it is desirable to prevent the value of a property from being translated.

      It would be nice if the Q_PROPERTY macro had a way of preventing strings from being translated.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes