set focus on Fullscreen picture
This commit is contained in:
parent
f5be86aec4
commit
7e491603b5
1 changed files with 2 additions and 1 deletions
|
@ -239,13 +239,14 @@ void PictureDialog::on_labPicture_mouseDoubleClicked()
|
|||
pictureWidget->setWindowTitle(this->windowTitle());
|
||||
pictureWidget->setStyleSheet("background-color: black;");
|
||||
pictureWidget->setImage(snapmaticPicture, desktopRect);
|
||||
pictureWidget->setModal(true);
|
||||
|
||||
QObject::connect(this, SIGNAL(newPictureCommited(QImage)), pictureWidget, SLOT(setImage(QImage)));
|
||||
QObject::connect(pictureWidget, SIGNAL(nextPictureRequested()), this, SLOT(dialogNextPictureRequested()));
|
||||
QObject::connect(pictureWidget, SIGNAL(previousPictureRequested()), this, SLOT(dialogPreviousPictureRequested()));
|
||||
|
||||
pictureWidget->showFullScreen();
|
||||
pictureWidget->setModal(true);
|
||||
pictureWidget->setFocus();
|
||||
pictureWidget->exec();
|
||||
|
||||
delete pictureWidget;
|
||||
|
|
Loading…
Reference in a new issue