Use qNextPowerOfTwo instead of reimplementing it

This patch uses the new shared qNextPowerOfTwo implementation introduced in qtbase.

Change-Id: I831d056f584897a99df2ceb8c1d840764464e344
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>