From fb216e604aff3caf5ba0d9ae09286293f8587f42 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Sun, 18 Nov 2012 08:40:45 +0100 Subject: [PATCH] Windows and popup widget shadows, again. --- src/SocialWidget.cpp | 4 ++-- src/libtomahawk/widgets/SourceTreePopupDialog.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SocialWidget.cpp b/src/SocialWidget.cpp index 12605c5e3..f2fe6e9fd 100644 --- a/src/SocialWidget.cpp +++ b/src/SocialWidget.cpp @@ -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() ) { diff --git a/src/libtomahawk/widgets/SourceTreePopupDialog.cpp b/src/libtomahawk/widgets/SourceTreePopupDialog.cpp index 6833b81a3..3ee74de6b 100644 --- a/src/libtomahawk/widgets/SourceTreePopupDialog.cpp +++ b/src/libtomahawk/widgets/SourceTreePopupDialog.cpp @@ -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 );