Use QWidget::grab instead of deprecated QPixmap::grabWidget

This commit is contained in:
Chocobozzz 2016-02-29 18:16:09 +01:00
parent e6e189967d
commit 8cf6fc839c
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void WidgetFadeHelper::StartBlur() {
void WidgetFadeHelper::CaptureParent() {
// Take a "screenshot" of the window
original_pixmap_ = QPixmap::grabWidget(parent_);
original_pixmap_ = parent_->grab();
QImage original_image = original_pixmap_.toImage();
// Blur it