set focus on Fullscreen picture

This commit is contained in:
Rafael 2016-04-12 22:45:00 +02:00
parent f5be86aec4
commit 7e491603b5

View file

@ -239,13 +239,14 @@ void PictureDialog::on_labPicture_mouseDoubleClicked()
pictureWidget->setWindowTitle(this->windowTitle()); pictureWidget->setWindowTitle(this->windowTitle());
pictureWidget->setStyleSheet("background-color: black;"); pictureWidget->setStyleSheet("background-color: black;");
pictureWidget->setImage(snapmaticPicture, desktopRect); pictureWidget->setImage(snapmaticPicture, desktopRect);
pictureWidget->setModal(true);
QObject::connect(this, SIGNAL(newPictureCommited(QImage)), pictureWidget, SLOT(setImage(QImage))); QObject::connect(this, SIGNAL(newPictureCommited(QImage)), pictureWidget, SLOT(setImage(QImage)));
QObject::connect(pictureWidget, SIGNAL(nextPictureRequested()), this, SLOT(dialogNextPictureRequested())); QObject::connect(pictureWidget, SIGNAL(nextPictureRequested()), this, SLOT(dialogNextPictureRequested()));
QObject::connect(pictureWidget, SIGNAL(previousPictureRequested()), this, SLOT(dialogPreviousPictureRequested())); QObject::connect(pictureWidget, SIGNAL(previousPictureRequested()), this, SLOT(dialogPreviousPictureRequested()));
pictureWidget->showFullScreen(); pictureWidget->showFullScreen();
pictureWidget->setModal(true); pictureWidget->setFocus();
pictureWidget->exec(); pictureWidget->exec();
delete pictureWidget; delete pictureWidget;