Fix build with QT_NO_GRAPHICSVIEW

Change-Id: I81cfed124a2e9e1c46c966c4819e89df5abd4f74
Fix build with QT_NO_GRAPHICSEFFECT

Change-Id: Iadc78c270f541067dbbebcf77748077cc3a8be13