1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-30 17:20:26 +02:00

Windows and popup widget shadows, again.

This commit is contained in:
Teo Mrnjavac
2012-11-18 08:40:45 +01:00
parent bfa3465722
commit fb216e604a
2 changed files with 3 additions and 3 deletions

View File

@@ -42,8 +42,8 @@ SocialWidget::SocialWidget( QWidget* parent )
ui->setupUi( this );
#ifndef Q_OS_WIN
setWindowFlags( Qt::FramelessWindowHint ); //this causes ugly black shadows on Windows
#endif
setWindowFlags( Qt::Popup );
#endif
setAttribute( Qt::WA_TranslucentBackground, true );
TomahawkUtils::unmarginLayout( layout() );
@@ -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() -= ARROW_HEIGHT;
position.ry() -= 2 * ARROW_HEIGHT;
#endif
if ( position != pos() )
{

View File

@@ -46,8 +46,8 @@ SourceTreePopupDialog::SourceTreePopupDialog()
{
#ifndef Q_OS_WIN
setWindowFlags( Qt::FramelessWindowHint );
#endif
setWindowFlags( Qt::Popup );
#endif
setAutoFillBackground( false );
setAttribute( Qt::WA_TranslucentBackground, true );