Qt4 build fix for fullscreen
This commit is contained in:
parent
770137e935
commit
6e55152b26
1 changed files with 4 additions and 0 deletions
|
@ -389,7 +389,11 @@ 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");
|
||||||
|
#if QT_VERSION >= 0x050000
|
||||||
pictureWidget->setWindowFlags(pictureWidget->windowFlags()^Qt::FramelessWindowHint^Qt::MaximizeUsingFullscreenGeometryHint);
|
pictureWidget->setWindowFlags(pictureWidget->windowFlags()^Qt::FramelessWindowHint^Qt::MaximizeUsingFullscreenGeometryHint);
|
||||||
|
#else
|
||||||
|
pictureWidget->setWindowFlags(pictureWidget->windowFlags()^Qt::FramelessWindowHint);
|
||||||
|
#endif
|
||||||
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);
|
||||||
|
|
Loading…
Reference in a new issue