From f872d12ab4d6988af440bf7d95fcce18660da69c Mon Sep 17 00:00:00 2001 From: Flavio Date: Sun, 10 Jun 2012 16:20:57 +0200 Subject: [PATCH] Fixed painting bug with 4.8 --- src/segmentedcontrol.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.5