[Qt-creator] Follow symbol under cursor ignores function signature

Ernst Huber swmail01 at systest.ch
Fri Jun 12 17:19:04 CEST 2009


When there are several methods with same name but different signature 
(overloaded methods) the "follow symbol under cursor" command in the 
editor context-menu always moves to the method with no arguments.

It's best to give an example.

----- Header file snippet -----

public slots:

void setViewDefaults() const;


private slots:


private: // Operations


void setViewDefaults(ViewWindow* window) const;     <<<--- "follow 
symbol" with cursor here will move to impl. 
ViewsController::setViewDefaults()


----- Implementation file snippet -----


void ViewsController::setViewDefaults() const

{
   ...

  ViewWindow* window = ....

   setViewDefaults(window);   <<<--- "follow symbol" with cursor here 
will move to impl. ViewsController::setViewDefaults()
   ...

}

void ViewsController::setViewDefaults(ViewWindow* window) const

{
   ...
}


----------


Could be a bug, couldn't it?

Regards
Ernst




More information about the Qt-creator-old mailing list