ext Shaun van Wyngaard (Home) wrote:
> 
> Hi
> I have changed my keyboard keys so that F12 does a "Save All"
> However, it also removes my indentation if I haven't as yet typed 
> anything on the line, i.e. it takes it back to position 1 of the line.
>  
> Now to check, under Options/Text editor/Behaviour, under Clean 
> Whitespace, I first had them both selected, then I tried removing the 
> second option (Clean indentation), then put that back and removed the 
> first (In entire document), then removed them both, and only when I took 
> off the main option to clean whitespace, did this not put the cursor at 
> the beginning of the line. Is this the correct behaviour? 

Yes, I think so.

"in entire document" -> Clean whitespace all over, not only in the lines 
I have edited
"Clean indentation" -> Do not only remove trailing whitespace (that is, 
before a line break), but also e.g. replace tabs with spaces if I 
specified this under Tabs and Indentation

I agree that the semantics of the second option is probably not immediately
evident (the tooltip is more informative, though). But the options do 
not change anything in your case: You have typed new trailing 
whitespace, and the "Clean whitespace" option ensures that this is not 
stored on disk.


> Also, aren't 
> the 2 options children of the main option, and by removing them, 
> shouldn't it automatically have removed the tick from the parent option?

No, because having only "Clean whitespace" checked means that you want 
to remove whitespace, but only in the lines you edited, and you do not 
want to change any non-trailing whitespace.

Regards

Kai

> Thanks,
> Shaun
> 


-- 
Kai Koehne
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to