[Qt-creator] Missing highlighting of qreal, plus missing completion of QMultiMap
Roberto Raggi
roberto.raggi at trolltech.com
Mon Jan 12 22:43:58 CET 2009
Hi,
On Jan 12, 2009, at 10:12 PM, Christopher Rasch-Olsen Raa wrote:
> Tirsdag 13 januar 2009 18:27:18 skrev Daniel Molkentin:
>> 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.
Yes, I agree. We should add a second pass and highlight types, macros,
and so on...
>>
>>
>>> In addition, auto-completion does not work for QMultiMap.
>>
>> Ignored as requested ;-)
>
> I found what I was looking for. QModelIndexList gives no auto-
> completion. I do
> not know why I got it into my head that it was QMultiMap...
It seems to work here. Please try with a more recent snapshot.
ciao robe
More information about the Qt-creator-old
mailing list