There is problem of alignement, in your file. If you use qt creator, you can use this configuration file for the editor : 
http://calaos.fr/download/qtcreator_calaos.xml
Otherwise configure your editor to have 8 spaces for indentations