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:
commit
6fff75bb34
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user