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

fix positioning of screen grabber window

This commit is contained in:
Nils Fenner 2015-09-25 21:44:54 +02:00
parent 7b2610e4fb
commit 04219e8c1d
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -78,10 +78,10 @@ void ScreenshotGrabber::showGrabber()
this->window->grabKeyboard();
QRect fullGrabbedRect = screenGrab.rect();
qDebug() << "adjusting grabber size to" << fullGrabbedRect;
QRect nr(QPoint(-1,-1), fullGrabbedRect.size());
this->window->setGeometry(fullGrabbedRect);
this->window->scene()->setSceneRect(fullGrabbedRect);
this->window->setGeometry(nr);
this->scene->setSceneRect(fullGrabbedRect);
this->overlay->setRect(fullGrabbedRect);
adjustTooltipPosition();