From 0c0db025c2c48717d3d69f2de20c3049ceaff8d1 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Sat, 17 Nov 2012 21:27:46 +0100 Subject: [PATCH] Trying some alternative fixes for the popup shadow issue on Windows. --- src/SocialWidget.cpp | 4 ++-- src/libtomahawk/widgets/SourceTreePopupDialog.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SocialWidget.cpp b/src/SocialWidget.cpp index a2854e780..288bf5364 100644 --- a/src/SocialWidget.cpp +++ b/src/SocialWidget.cpp @@ -41,9 +41,9 @@ SocialWidget::SocialWidget( QWidget* parent ) { ui->setupUi( this ); #ifndef Q_OS_WIN - setWindowFlags( Qt::FramelessWindowHint ); - setWindowFlags( Qt::Popup ); + setWindowFlags( Qt::FramelessWindowHint ); //this causes ugly black shadows on Windows #endif + setWindowFlags( Qt::Popup ); setAttribute( Qt::WA_TranslucentBackground, true ); TomahawkUtils::unmarginLayout( layout() ); diff --git a/src/libtomahawk/widgets/SourceTreePopupDialog.cpp b/src/libtomahawk/widgets/SourceTreePopupDialog.cpp index 5d17c8e8a..551e3a857 100644 --- a/src/libtomahawk/widgets/SourceTreePopupDialog.cpp +++ b/src/libtomahawk/widgets/SourceTreePopupDialog.cpp @@ -112,6 +112,9 @@ SourceTreePopupDialog::SourceTreePopupDialog() background-color: #D35052; \ border-style: flat; \ }" );*/ +#ifdef Q_OS_WIN + setMask( geometry() ); +#endif } void