Browse Source

End the painter in ctkBasePopupWidget...

... before calling its superclass paintEvent.
Credits go to Jim Miller <millerjv@ge.com>
Julien Finet 13 years ago
parent
commit
2d5ab84074
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Libs/Widgets/ctkBasePopupWidget.cpp

+ 1 - 0
Libs/Widgets/ctkBasePopupWidget.cpp

@@ -645,6 +645,7 @@ void ctkBasePopupWidget::paintEvent(QPaintEvent* event)
   //QColor semiTransparentColor = this->palette().window().color();
   //semiTransparentColor.setAlpha(d->CurrentAlpha);
   painter.fillRect(this->rect(), brush);
+  painter.end();
   // Let the QFrame draw itself if needed
   this->Superclass::paintEvent(event);
 }