1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 08:04:25 +02:00

Fix AccountsPopupWidget appearance on Windows.

This commit is contained in:
Teo Mrnjavac
2012-08-19 18:42:58 +02:00
parent b55851feec
commit 22fa9a0003

View File

@@ -60,7 +60,13 @@ AccountsPopupWidget::setWidget( QWidget* widget )
void
AccountsPopupWidget::anchorAt( const QPoint &p )
{
#ifdef Q_OS_WIN
// We do this because Windows sticks the toolbutton really close to the
// right side border of the window
QPoint myTopRight( p.x() - sizeHint().width(), p.y() );
#else
QPoint myTopRight( p.x() - sizeHint().width() + 8, p.y() );
#endif
move( myTopRight );
if( isVisible() )
repaint();
@@ -79,6 +85,7 @@ void AccountsPopupWidget::paintEvent( QPaintEvent* )
QPainter p( this );
p.setRenderHint( QPainter::Antialiasing );
p.setBackgroundMode( Qt::TransparentMode );
QPen pen( QColor( 0x8c, 0x8c, 0x8c ) );
pen.setWidth( 2 );