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

F2 for virtual functions also on declarations/definitions

    XMLWordPrintable

Details

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

    Description

      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; }

      };

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes