Reformated as per http://doc.qt.digia.com/qtcreator-extending/coding-style.html#formatting.