mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-02 10:24:01 +02:00
Windows and popup widget shadows, again.
This commit is contained in:
@@ -42,8 +42,8 @@ SocialWidget::SocialWidget( QWidget* parent )
|
|||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
setWindowFlags( Qt::FramelessWindowHint ); //this causes ugly black shadows on Windows
|
setWindowFlags( Qt::FramelessWindowHint ); //this causes ugly black shadows on Windows
|
||||||
#endif
|
|
||||||
setWindowFlags( Qt::Popup );
|
setWindowFlags( Qt::Popup );
|
||||||
|
#endif
|
||||||
setAttribute( Qt::WA_TranslucentBackground, true );
|
setAttribute( Qt::WA_TranslucentBackground, true );
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
@@ -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() -= ARROW_HEIGHT;
|
position.ry() -= 2 * ARROW_HEIGHT;
|
||||||
#endif
|
#endif
|
||||||
if ( position != pos() )
|
if ( position != pos() )
|
||||||
{
|
{
|
||||||
|
@@ -46,8 +46,8 @@ SourceTreePopupDialog::SourceTreePopupDialog()
|
|||||||
{
|
{
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
setWindowFlags( Qt::FramelessWindowHint );
|
setWindowFlags( Qt::FramelessWindowHint );
|
||||||
#endif
|
|
||||||
setWindowFlags( Qt::Popup );
|
setWindowFlags( Qt::Popup );
|
||||||
|
#endif
|
||||||
|
|
||||||
setAutoFillBackground( false );
|
setAutoFillBackground( false );
|
||||||
setAttribute( Qt::WA_TranslucentBackground, true );
|
setAttribute( Qt::WA_TranslucentBackground, true );
|
||||||
|
Reference in New Issue
Block a user