mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Trying to fix ugly shadows on popups on Windows.
This commit is contained in:
@@ -112,9 +112,6 @@ SourceTreePopupDialog::SourceTreePopupDialog()
|
|||||||
background-color: #D35052; \
|
background-color: #D35052; \
|
||||||
border-style: flat; \
|
border-style: flat; \
|
||||||
}" );*/
|
}" );*/
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
setMask( geometry() );
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -220,6 +217,10 @@ SourceTreePopupDialog::paintEvent( QPaintEvent* event )
|
|||||||
// invalidated.
|
// invalidated.
|
||||||
SourceTreePopupHelper::clearBackground( this );
|
SourceTreePopupHelper::clearBackground( this );
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
QRegion bubble = QRegion( outline.toFillPolygon().toPolygon(), Qt::WindingFill );
|
||||||
|
setMask( bubble );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user