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

F2 for virtual functions also on declarations/definitions

XMLWordPrintable

    • c41847ce5da4f40754f7ed90c3ad3d7db018d94a (qt-creator/qt-creator/master)

      When choosing "Follow symbol under cursor" (F2) on the pure virtual "hello" function in the base class "Base" below, nothing happens (one ends up at the pure virtual base function). I think it would be better to instead get a small dialog where one can select which of the derived classed one wants to jump to, and go to the "hello" function in the choosen derived class.

      class Base{
      public:
      Base(){}
      virtual void hello()const=0;

      };

      class Derived1 : public Base{
      public:
      void hello()const

      { std::cout<<"I am Derived1"<<std::endl; }

      };

      class Derived2 : public Base{
      public:
      void hello()const

      { std::cout<<"I am Derived2"<<std::endl; }

      };
      class Derived3 : public Base{
      public:
      void hello()const

      { std::cout<<"I am Derived3"<<std::endl; }

      };

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

            kandeler Christian Kandeler
            ivareske Ivar Eskerud Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes