[Qt-creator] minor "bug" in editor

Serge Ratke dev.serge.ratke at gmx.de
Mon Jan 12 21:20:58 CET 2009


On Mon, 12 Jan 2009 13:40:18 +0100, Thorbjørn Lindeijer  
<thorbjorn.lindeijer at nokia.com> wrote:

> ext genacid wrote:
>> Hi!
>>
>> I noticed a small bug: auto indent always equal 4 spaces for next line  
>> after
>> function definition though I used two spaces for indention.
>> To reproduce bug:
>> 1. set indent equal to 2 for example;
>> 2. write smth like "void somefunc()" and press Enter - cursor will be  
>> shifted
>> on four spaces after "void"
>
> It seems to use two indents instead of one, since I've got my
> indentation set to 4 spaces and pressing Enter there yields an 8 spaces
> indent for me.
>
> However, since it will correctly indent when you type the brace, either
> on the same line or on the next, I don't see this being a problem,
> unless I'm missing something.

umm, not quite. consider the case where you have a : after the column to  
initialise some member variables.

MyClass()
	: m_member(new Member())
{
}

i usually have to reindent in this case.

>
> Regards,
> Bjørn
>

-- 
Serge Ratke



More information about the Qt-creator-old mailing list