Code cleanup: Use Qt types and macros instead of STL.
Remove old unused grid orthogonalisation code.
Replace old layout finished callback with a signal.