Second screen issue fixed
This commit is contained in:
parent
97bea072c1
commit
677388c7d8
2 changed files with 5 additions and 1 deletions
|
@ -386,7 +386,7 @@ void PictureDialog::on_labPicture_mouseDoubleClicked(Qt::MouseButton button)
|
||||||
{
|
{
|
||||||
if (button == Qt::LeftButton)
|
if (button == Qt::LeftButton)
|
||||||
{
|
{
|
||||||
QRect desktopRect = QApplication::desktop()->screenGeometry();
|
QRect desktopRect = QApplication::desktop()->screenGeometry(this);
|
||||||
PictureWidget *pictureWidget = new PictureWidget(this);
|
PictureWidget *pictureWidget = new PictureWidget(this);
|
||||||
pictureWidget->setObjectName("PictureWidget");
|
pictureWidget->setObjectName("PictureWidget");
|
||||||
pictureWidget->setWindowFlags(pictureWidget->windowFlags()^Qt::WindowContextHelpButtonHint);
|
pictureWidget->setWindowFlags(pictureWidget->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
|
@ -400,8 +400,11 @@ void PictureDialog::on_labPicture_mouseDoubleClicked(Qt::MouseButton button)
|
||||||
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->setMaximumSize(desktopRect.width(), desktopRect.height());
|
||||||
|
pictureWidget->setMaximumSize(desktopRect.width(), desktopRect.height());
|
||||||
pictureWidget->showFullScreen();
|
pictureWidget->showFullScreen();
|
||||||
pictureWidget->setFocus();
|
pictureWidget->setFocus();
|
||||||
|
pictureWidget->raise();
|
||||||
pictureWidget->exec();
|
pictureWidget->exec();
|
||||||
|
|
||||||
fullscreenWidget = 0;
|
fullscreenWidget = 0;
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
PictureWidget::PictureWidget(QWidget *parent) : QDialog(parent)
|
PictureWidget::PictureWidget(QWidget *parent) : QDialog(parent)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue