Probably fullscreen fix for some desktop envs

This commit is contained in:
Rafael 2016-11-28 07:59:55 +01:00
parent b765fcf992
commit 770137e935
2 changed files with 2 additions and 1 deletions

View file

@ -389,7 +389,7 @@ void PictureDialog::on_labPicture_mouseDoubleClicked(Qt::MouseButton button)
QRect desktopRect = QApplication::desktop()->screenGeometry(this);
PictureWidget *pictureWidget = new PictureWidget(this);
pictureWidget->setObjectName("PictureWidget");
pictureWidget->setWindowFlags(pictureWidget->windowFlags()^Qt::WindowContextHelpButtonHint);
pictureWidget->setWindowFlags(pictureWidget->windowFlags()^Qt::FramelessWindowHint^Qt::MaximizeUsingFullscreenGeometryHint);
pictureWidget->setWindowTitle(this->windowTitle());
pictureWidget->setStyleSheet("QLabel#pictureLabel{background-color: black;}");
pictureWidget->setImage(snapmaticPicture, desktopRect);

View file

@ -30,6 +30,7 @@
#include "IconLoader.h"
#include "AppEnv.h"
#include "config.h"
#include <QStyleFactory>
#include <QFileDialog>
#include <QHBoxLayout>
#include <QSpacerItem>