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

Wrong Context in Function Definitions with Prepended "::"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.9.0 FF
    • 6.7.2
    • Tools: Linguist
    • None
    • macOS
    • 2ab72cf40 (dev)

    Description

      Given the following function which is defined by prepending "::":

      class cl: public QObject {
          Q_OBJECT
          void func();
      };
      
      void ::cl::func() {
          tr("text");
      }

      Running lupdate results in the following warning:

       Qualifying with unknown namespace/class ::void

      the resulted ps file does not have the correct context:

      <!DOCTYPE TS>
      <TS version="2.1">
      <context>
          <name>void::cl</name>
          <message>
              <location filename="main.cpp" line="34"/>
              <source>text</source>
              <translation type="unfinished"></translation>
          </message>
      </context>
      </TS> 

      Attachments

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

        Activity

          People

            masoud.jami Masoud Jami
            masoud.jami Masoud Jami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes