Viewport calculation based on QML Item size instead of window size

This would allow a GLWindow to be displayed in a window with other QML Items.
Merge pull request #1 from Gu1/master

Viewport calculation based on QML Item size instead of window size