Переглянути джерело

End the painter in ctkBasePopupWidget...

... before calling its superclass paintEvent.
Credits go to Jim Miller <millerjv@ge.com>
Julien Finet 13 роки тому
батько
коміт
2d5ab84074
1 змінених файлів з 1 додано та 0 видалено
  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);
 }