From: Flavio Date: Sun, 10 Jun 2012 14:20:57 +0000 (+0200) Subject: Fixed painting bug with 4.8 X-Git-Tag: 1.8~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f872d12ab4d6988af440bf7d95fcce18660da69c;p=minitube Fixed painting bug with 4.8 --- diff --git a/src/segmentedcontrol.cpp b/src/segmentedcontrol.cpp index b5a05be..d666e4d 100644 --- a/src/segmentedcontrol.cpp +++ b/src/segmentedcontrol.cpp @@ -58,9 +58,9 @@ QSize SegmentedControl::minimumSizeHint (void) const { return(QSize(itemsWidth, QFontMetrics(font()).height() * 1.9)); } -void SegmentedControl::paintEvent (QPaintEvent *event) { - int height = event->rect().height(); - int width = event->rect().width(); +void SegmentedControl::paintEvent (QPaintEvent * /*event*/) { + int height = rect().height(); + int width = rect().width(); QPainter p(this);