From b3d021743b436f43cbeaf69ee47591e509973d2b Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 4 Aug 2015 19:18:30 +0200 Subject: [PATCH] Fix window border on Qt5 --- src/snapshotpreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapshotpreview.cpp b/src/snapshotpreview.cpp index 9766a20..5468f2a 100644 --- a/src/snapshotpreview.cpp +++ b/src/snapshotpreview.cpp @@ -30,7 +30,7 @@ SnapshotPreview::SnapshotPreview(QWidget *parent) : QWidget(parent), setAttribute(Qt::WA_ShowWithoutActivating); setWindowFlags(Qt::FramelessWindowHint); #if QT_VERSION >= 0x050000 - setWindowFlags(Qt::WindowDoesNotAcceptFocus); + setWindowFlags(windowFlags() | Qt::WindowDoesNotAcceptFocus); #endif setAttribute(Qt::WA_StaticContents); -- 2.39.5