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
1.x
Ariya Hidayat 2014-01-06 23:16:42 -08:00
parent 266ef0da59
commit 6b45113cfe
1 changed files with 2 additions and 0 deletions

View File

@ -611,6 +611,8 @@ public:
}
}
}
#else
Q_UNUSED(widget);
#endif
return screen;
}