1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge branch 'pr1748'

This commit is contained in:
tux3 2015-05-28 00:27:29 +02:00
commit 6fff75bb34
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -178,8 +178,12 @@ void ScreenshotGrabber::adjustWindowSize()
this->overlay->setRect(systemScreenRect); this->overlay->setRect(systemScreenRect);
} }
QPixmap ScreenshotGrabber::grabScreen() { QPixmap ScreenshotGrabber::grabScreen()
return QApplication::primaryScreen()->grabWindow(QApplication::desktop()->winId()); {
QRect systemScreenRect = getSystemScreenRect();
return QApplication::primaryScreen()->grabWindow(QApplication::desktop()->winId(),0,0,
systemScreenRect.width(),
systemScreenRect.height());
} }
void ScreenshotGrabber::beginRectChooser(QGraphicsSceneMouseEvent* event) void ScreenshotGrabber::beginRectChooser(QGraphicsSceneMouseEvent* event)