QWidget: Fix unused parameter warning when there's no Graphics View.

This reduces the amount of repetitive compiler warnings.

https://github.com/ariya/phantomjs/issues/11880