gallery: Clean-up some code
gallery: Clean-up some code

This should work the all same, but with one hack less.

Change-Id: Ia2deccc31a89baf414fbd6eb11979c6d85fb0cb9
Reviewed-by: Caroline Chao <cb6a0059f4e516e853a34cb558c25ca5a9bcf4ab@digia.com>

jfaust/qtquickcontrols,mizukusak/qtquickcontrols,richardmg/qtcomponents,drgvond/qtquickcontrols,kobolabs/qtquickcontrols,drgvond/qtquickcontrols,jfaust/qtquickcontrols,drgvond/qtquickcontrols,mizukusak/qtquickcontrols,richardmg/qtcomponents,kobolabs/qtquickcontrols,richardmg/qtcomponents,mizukusak/qtquickcontrols,jfaust/qtquickcontrols,kobolabs/qtquickcontrols