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:
parent
e6e189967d
commit
8cf6fc839c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user