]> git.sur5r.net Git - minitube/commitdiff
Fixed painting bug with 4.8
authorFlavio <flavio@odisseo.local>
Sun, 10 Jun 2012 14:20:57 +0000 (16:20 +0200)
committerFlavio <flavio@odisseo.local>
Sun, 10 Jun 2012 14:20:57 +0000 (16:20 +0200)
src/segmentedcontrol.cpp

index b5a05be1ae13dbe7f93c00f58149bdef077405d6..d666e4db057450fcd1fcb535a1eedccc2dd3f22b 100644 (file)
@@ -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);