Fix another bunch of warnings/deprecated calls
This MR set the QT_DISABLE_DEPRECATED_BEFORE flag to 5.6 level disallow any regression on that. I also started cleaning up uses of QDesktopWidget, but this is harder to do while maintaining Qt 5.6 compatibility.
And since I had to recompile, I fixed another bunch of warnings.