Mainwindow class code cleanup
Ctrl widgets code cleanup
Fix some warnings
Displaylist cleanup
Merge pull request #788 from mikusp/qtcleanup

Cleanup of Qt code