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:
parent
0c0db025c2
commit
49a71af3b9
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user