mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Another attempt to fix shadows on Windows.
This commit is contained in:
@@ -251,7 +251,7 @@ SocialWidget::onGeometryUpdate()
|
||||
QPoint position( m_position - QPoint( size().width(), size().height() )
|
||||
+ QPoint( 2 + ARROW_HEIGHT * 3, 0 ) );
|
||||
#ifdef Q_OS_WIN
|
||||
position.ry() -= 12 + ARROW_HEIGHT;
|
||||
position.ry() -= ARROW_HEIGHT;
|
||||
#endif
|
||||
if ( position != pos() )
|
||||
{
|
||||
|
@@ -44,7 +44,9 @@ SourceTreePopupDialog::SourceTreePopupDialog()
|
||||
, m_label( 0 )
|
||||
, m_buttons( 0 )
|
||||
{
|
||||
#ifndef Q_OS_WIN
|
||||
setWindowFlags( Qt::FramelessWindowHint );
|
||||
#endif
|
||||
setWindowFlags( Qt::Popup );
|
||||
|
||||
setAutoFillBackground( false );
|
||||
@@ -217,10 +219,6 @@ SourceTreePopupDialog::paintEvent( QPaintEvent* event )
|
||||
// invalidated.
|
||||
SourceTreePopupHelper::clearBackground( this );
|
||||
#endif
|
||||
#ifdef Q_OS_WIN
|
||||
QRegion bubble = QRegion( outline.toFillPolygon().toPolygon(), Qt::WindingFill );
|
||||
setMask( bubble );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user