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

Function return types with namespaces sometimes confuse lupdate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10.0
    • Tools: Linguist
    • None
    • 75259f4f1 (18.0)

      e.g.

      Tasking::GroupItem runRecipe()
      {
          ....
          .... Tr::tr("something") ....
          ....
      }
      

      results in "Qualifying with unknown namespace/class ::Tasking".
      Even fully qualifying the Tr::tr call doesn't help. What helps, is to declare a "using GroupItem = Tasking::GroupItem;" and using just "GroupItem" as the return type.

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

            kkohne Kai Köhne
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes