[qmlgallery] Porting to Qt5.
Merge pull request #22 from locusf/master

Porting to Qt5.