[configuration] Port to Qt 5.
Merge pull request #1 from martinjones/master

Port to Qt 5