1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-15 13:32:35 +02:00

Trying to fix ugly shadows on popups on Windows.

This commit is contained in:
Teo Mrnjavac 2012-11-17 23:07:11 +01:00
parent 0c0db025c2
commit 49a71af3b9

View File

@ -112,9 +112,6 @@ SourceTreePopupDialog::SourceTreePopupDialog()
background-color: #D35052; \
border-style: flat; \
}" );*/
#ifdef Q_OS_WIN
setMask( geometry() );
#endif
}
void
@ -220,6 +217,10 @@ SourceTreePopupDialog::paintEvent( QPaintEvent* event )
// invalidated.
SourceTreePopupHelper::clearBackground( this );
#endif
#ifdef Q_OS_WIN
QRegion bubble = QRegion( outline.toFillPolygon().toPolygon(), Qt::WindingFill );
setMask( bubble );
#endif
}