[Qt-creator] Missing highlighting of qreal, plus missing completion of QMultiMap

Daniel Molkentin daniel.molkentin at nokia.com
Tue Jan 13 18:27:18 CET 2009


ext Christopher Rasch-Olsen Raa schrieb:
> Using Qt Creator Dec 17 build.
> 
> Type 'qreal' does not get highlighted, whilst other types get highlighted 
> flawlessly. 

This is because "qreal" is a typedef that is an alias to either real or 
double depending on the target platform. However, at the time where 
syntax highlighting happens, we do not have information about include 
files yet, and hence do not know about typedefs. That's mostly for 
performance reasons.

We should probably add a second pass of highlighting which adds those 
information, but such a feature is not planned yet. Just adding "qreal"
to the list of keywords is also not really acceptable, since it would
also get highlighted in non-Qt projects.

Maybe Roberto can comment on this further.


> In addition, auto-completion does not work for QMultiMap.

Ignored as requested ;-)

> Aside from that I'm very satisfied with the tool so far.

Nice to hear!

Daniel

-- 
Daniel Molkentin, Software Engineer,
Nokia Qt Software, www.qtsoftware.com
Rudower Chaussee 13, DE-12489 Berlin



More information about the Qt-creator-old mailing list