Merge pull request #835 from Thulinma/imagewindowrole

Added window role to image overlay
This commit is contained in:
DeepBlueV7.X 2021-12-14 01:02:47 +01:00 committed by GitHub
commit 0a3e647509
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,7 @@ ImageOverlay::ImageOverlay(QPixmap image, QWidget *parent)
setParent(nullptr); setParent(nullptr);
setWindowFlags(windowFlags() | Qt::FramelessWindowHint); setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
setWindowRole("imageoverlay");
setAttribute(Qt::WA_NoSystemBackground, true); setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_TranslucentBackground, true); setAttribute(Qt::WA_TranslucentBackground, true);