Просмотр исходного кода

End the painter in ctkBasePopupWidget...

... before calling its superclass paintEvent.
Credits go to Jim Miller <millerjv@ge.com>
Julien Finet лет назад: 14
Родитель
Сommit
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);
 }