Qt/Minimap: Fix for Qt < 4.8

I hope it is quite right solution.

Change-Id: Ia9c883a832ddd03985eda37a9b344c4d7c8135e2
Reviewed-on: https://code.wireshark.org/review/10091
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Michal Labedzki 2015-07-18 18:25:36 +02:00 committed by Alexis La Goutte
parent e25562badd
commit 037524490d
1 changed files with 4 additions and 0 deletions

View File

@ -1410,7 +1410,11 @@ void PacketList::drawFarOverlay()
// background is white. Instead of trying to figure out if our
// available colors will show up, just use the palette's background
// here and foreground below.
#if QT_VERSION < QT_VERSION_CHECK(4, 8, 0)
overlay.fill(palette().base().color().value());
#else
overlay.fill(palette().base().color());
#endif
QColor arrow_fg = palette().text().color();
arrow_fg.setAlphaF(0.3);
painter.setPen(arrow_fg);