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

F2 on a virtual function pops another function proposal at the target

XMLWordPrintable

    • 1113097c377cf0ce79574f12aacda174e4c55e88

      test.h:

      struct Foo
      {
          virtual void foo(const char *a, const char *b) {}
      };
      
      struct Bar : Foo
      {
      public:
          void foo(const char *a, const char *b) { }
      };

      test.cpp:

      #include "test.h"
      
      void test(const char *a, const char *b)
      {
          Foo *f = 0;
          f->foo(a, b); // F2 here, choose Foo::foo
      }
      • virtual1.png: Pressing F2 then choosing the first entry
      • virtual2.png: Jumps to the correct function, but pops another proposal widget
      • virtual3.png: Pressing Enter pops the function hint.

        1. virtual1.png
          virtual1.png
          4 kB
        2. virtual2.png
          virtual2.png
          5 kB
        3. virtual3.png
          virtual3.png
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes