Replace QtGui include with individual includes

Qt 5 splits QtGui into Gui and Widgets components. Including the
individual includes will solve this problem.
Merge pull request #1291 from simonsonc/qtgui-include

Replace QtGui include with individual includes