From 81b6e62215363cabd88d1006be7bca1ab491cb06 Mon Sep 17 00:00:00 2001 From: Daniel Nachbaur Date: Wed, 13 May 2015 12:24:29 +0200 Subject: [PATCH] Fix deprecation warning --- apps/DesktopStreamer/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/DesktopStreamer/MainWindow.cpp b/apps/DesktopStreamer/MainWindow.cpp index 182ea1e..3b668cc 100644 --- a/apps/DesktopStreamer/MainWindow.cpp +++ b/apps/DesktopStreamer/MainWindow.cpp @@ -344,8 +344,8 @@ void MainWindow::shareDesktopUpdate() // take screenshot const QPixmap desktopPixmap = - QPixmap::grabWindow( QApplication::desktop()->winId(), x_, y_, - width_, height_ ); + QApplication::primaryScreen()->grabWindow( 0, x_, y_, + width_, height_ ); if( desktopPixmap.isNull( )) {