More correct result positioning on screen.

This commit is contained in:
Gres 2015-09-30 21:33:18 +03:00
parent 77757ff3c6
commit 381df69650

View File

@ -88,7 +88,7 @@ void ResultDialog::showResult (ProcessingItem item) {
QDesktopWidget *desktop = QApplication::desktop ();
Q_CHECK_PTR (desktop);
QPoint correction = QPoint (ui->frame->lineWidth (), ui->frame->lineWidth ());
QPoint correction = QPoint ((width () - item.source.width ()) / 2, ui->frame->lineWidth ());
move (item.screenPos - correction);
QRect screenRect = desktop->screenGeometry (this);
int minY = screenRect.bottom () - height ();