diff --git a/src/widgets/AccountsPopupWidget.cpp b/src/widgets/AccountsPopupWidget.cpp index 821f8c250..a39ac28e9 100644 --- a/src/widgets/AccountsPopupWidget.cpp +++ b/src/widgets/AccountsPopupWidget.cpp @@ -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 );