migrate MarGrid2 to Qt 5

* Most features yet untested!

* A bunch of warnings to squish...