scrapinghub/splash — pull request #116 by sardok (2014-10-10 12:58:12+00:00)
Title: Web view geometry inheritance.

Faced with a webpage where it re-arranges its content based on the browser dimension. Eventually discovered that, created QWebView instance does not follow QApplication geometry, even though QApp's widget (as desktop()) is passed to QWebView constructor.
This change sets every created WebView instance's geometry to what QApp desktop is using.
Also based on a discussion on freenode #qt room, another way of doing that is adding layout to desktop and adding every created QWebView to the layout as widget.
Example:
```this->setLayout(new QVBoxLayout); this->layout()->addWidget(yourWebView);```
But, i could not find any layout which does not modify added widget's geometry according to its layout scheme.

Also made minor refactoring which is about moving QApplication related function to qtutils file.