Update Qwt to 6.1

Prereq for moving to Qt5. Now split into 2 commits for easy reading.

The printing of line charts is broken now as the old code no longer compiled. I couldn't figure out what the equivalent code is now in Qwt 6.1. I believe this code just removed the background, but it wasn't commented and so there it is.