Use setSectionResizeMode if we use Qt5

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Make the include Qt5 compatible

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