Qt: Fix when build with Qt < 4.8.0

StyleName is not available in Qt < 4.8

Change-Id: Icbfcef7c62b124ce67f1a02ed928a96233ae2d9d
Reviewed-on: https://code.wireshark.org/review/3508
Reviewed-by: Christopher Maynard <Christopher.Maynard@gtech.com>
(cherry picked from commit 020d0f89637faab8ec0e25e07d64eb66d96c2a72)
Reviewed-on: https://code.wireshark.org/review/3525
Reviewed-by: Evan Huus <eapache@gmail.com>