1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 13:21:52 +02:00

Trying some alternative fixes for the popup shadow issue on Windows.

This commit is contained in:
Teo Mrnjavac
2012-11-17 21:27:46 +01:00
parent b824f2e2e5
commit 0c0db025c2
2 changed files with 5 additions and 2 deletions

View File

@@ -41,9 +41,9 @@ SocialWidget::SocialWidget( QWidget* parent )
{ {
ui->setupUi( this ); ui->setupUi( this );
#ifndef Q_OS_WIN #ifndef Q_OS_WIN
setWindowFlags( Qt::FramelessWindowHint ); setWindowFlags( Qt::FramelessWindowHint ); //this causes ugly black shadows on Windows
setWindowFlags( Qt::Popup );
#endif #endif
setWindowFlags( Qt::Popup );
setAttribute( Qt::WA_TranslucentBackground, true ); setAttribute( Qt::WA_TranslucentBackground, true );
TomahawkUtils::unmarginLayout( layout() ); TomahawkUtils::unmarginLayout( layout() );

View File

@@ -112,6 +112,9 @@ SourceTreePopupDialog::SourceTreePopupDialog()
background-color: #D35052; \ background-color: #D35052; \
border-style: flat; \ border-style: flat; \
}" );*/ }" );*/
#ifdef Q_OS_WIN
setMask( geometry() );
#endif
} }
void void