Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12474

Warn user about using "QObject::tr" antipattern

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • Qt Creator 3.1.1
    • C/C++/Obj-C++ Support
    • None

    Description

      Add a semantic check for the use of

      QObject::tr("...")
      

      in user code: This will put the translations in the "QObject" namespace, which is almost never what you want. Use QCoreApplication::translate if you're not in a QObject.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-12474
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes