mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +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 position( m_position - QPoint( size().width(), size().height() )
|
||||||
+ QPoint( 2 + ARROW_HEIGHT * 3, 0 ) );
|
+ QPoint( 2 + ARROW_HEIGHT * 3, 0 ) );
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
position.ry() -= 12 + ARROW_HEIGHT;
|
position.ry() -= ARROW_HEIGHT;
|
||||||
#endif
|
#endif
|
||||||
if ( position != pos() )
|
if ( position != pos() )
|
||||||
{
|
{
|
||||||
|
@@ -44,7 +44,9 @@ SourceTreePopupDialog::SourceTreePopupDialog()
|
|||||||
, m_label( 0 )
|
, m_label( 0 )
|
||||||
, m_buttons( 0 )
|
, m_buttons( 0 )
|
||||||
{
|
{
|
||||||
|
#ifndef Q_OS_WIN
|
||||||
setWindowFlags( Qt::FramelessWindowHint );
|
setWindowFlags( Qt::FramelessWindowHint );
|
||||||
|
#endif
|
||||||
setWindowFlags( Qt::Popup );
|
setWindowFlags( Qt::Popup );
|
||||||
|
|
||||||
setAutoFillBackground( false );
|
setAutoFillBackground( false );
|
||||||
@@ -217,10 +219,6 @@ 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