1
0
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:
Teo Mrnjavac
2012-11-18 00:16:58 +01:00
parent 1abbac1828
commit 2067d475ce
2 changed files with 3 additions and 5 deletions

View File

@@ -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() )
{

View File

@@ -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
}