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

Find Usages misses some signal usages

    XMLWordPrintable

Details

    Description

      Find Usages for a signal will not report any usages in a connect() call, unless the connect() call happens to be in a method of the class which declares the signal.

      Let's say I have a class Foo which declares a signal foo(). Finding usages of foo() will return the following lines:

      1. The declaration of foo(),
      2. All `emit foo();` lines
      3. All `connect(this, SIGNAL(foo()), something, SLOT(bar())` lines which occur in a method of Foo

      But it will not return the following lines:

      1. All `connect(someFooObj, SIGNAL(foo()), something, SLOT(bar())` lines which occur in a free function or a method of a class other than Foo.

       

      Attachments

        Issue Links

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

          Activity

            People

              bubke Marco Bubke
              vilya Vilya Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes