s/extend/expand/g

* src/ui/QTask.cc, src/ui/QTask.h: expand/shrink are the « standard »
  terms.
Fix emacs headers
Improve formatting

Remove some empty lines, trailing whitespaces, ...