Make this code Qt5 compatible

The method have bin renamed in Qt5.

Signed-off-by: Anton Lundin <glance@acc.umu.se>