[Qt-creator] Please dont skip typedefs when "Follow Symbol under cursor"

Arto Karppinen arto.karppinen at mail.suomi.net
Thu Feb 4 21:09:58 CET 2010


Or, atleast dont do it when templates are involved.

For example i have things like this in my code:

    Api::GetChatUsers* get_users = new Api::GetChatUsers(connection_);

When i select GetChatUsers and press F2, i end up here:

    template <class RESPONSE, class REQUEST> class RpcTemplate
        : public RpcResponse<RESPONSE>

Which tells me nothing about the actual type GetChatUsers, because it is
defined like this elsewhere:

    typedef RpcTemplate<ResponseBoolean, RequestGetChatUsers>
            GetChatUsers;

The same problem also happens if you typedef QHash<something, something>
and then use that typedef.


I think it makes sense to typedef complex template usages, and Qt
creator should take you to where the typedef is defined instead of where
the template is defined.

-- 
Arto Karppinen
------------------------------
arto.karppinen at iki.fi



More information about the Qt-creator-old mailing list