Probably fullscreen fix for some desktop envs
This commit is contained in:
parent
b765fcf992
commit
770137e935
2 changed files with 2 additions and 1 deletions
|
@ -389,7 +389,7 @@ void PictureDialog::on_labPicture_mouseDoubleClicked(Qt::MouseButton button)
|
||||||
QRect desktopRect = QApplication::desktop()->screenGeometry(this);
|
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::FramelessWindowHint^Qt::MaximizeUsingFullscreenGeometryHint);
|
||||||
pictureWidget->setWindowTitle(this->windowTitle());
|
pictureWidget->setWindowTitle(this->windowTitle());
|
||||||
pictureWidget->setStyleSheet("QLabel#pictureLabel{background-color: black;}");
|
pictureWidget->setStyleSheet("QLabel#pictureLabel{background-color: black;}");
|
||||||
pictureWidget->setImage(snapmaticPicture, desktopRect);
|
pictureWidget->setImage(snapmaticPicture, desktopRect);
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include "IconLoader.h"
|
#include "IconLoader.h"
|
||||||
#include "AppEnv.h"
|
#include "AppEnv.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include <QStyleFactory>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QSpacerItem>
|
#include <QSpacerItem>
|
||||||
|
|
Loading…
Reference in a new issue