Explorar o código

End the painter in ctkBasePopupWidget...

... before calling its superclass paintEvent.
Credits go to Jim Miller <millerjv@ge.com>
Julien Finet %!s(int64=14) %!d(string=hai) anos
pai
achega
2d5ab84074
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);
 }