1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-11 01:14:24 +01:00

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

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