[Qt-creator] Use of namespaces in Qt Creator's own code

Nikolai Kosjar nikolai.kosjar at digia.com
Tue Aug 27 15:10:25 CEST 2013

On 07/09/2013 01:05 PM, Koehne Kai wrote:
>> Definitely the latter. In general, I've come to resent this "double namespacing"
>> that we do in a lot of places in Qt Creator (I am very much guilty of it too). It's
>> probably a combination of mistrusting the C++ language and excessive use of
>> using directives. How about  discouraging that for new plugins in the coding
>> conventions?
> ... only if the locator learns about namespaces, too.
> Right now I can type 'c FooPlugin' to get to the class. 'c Plugin' will bring up all kind of unrelated classes, and 'c Foo::Plugin" doesn't seem to work.
> ...
> PS: Yes, it's better to fix this in the locator instead of building the coding conventions around this missing feature. I don't have time to look into it, though ;)

Just a quick note:

This is expected to work in latest master (commit aa1aeea). If the input 
contains "::", the namespaces of the definitions are taken into account 
(e.g. try "c texteditor::" or "c core::*category").


More information about the Qt-creator mailing list