mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
Make SocialWidget positioning saner in the hope of fixing TWK-1099.
This commit is contained in:
parent
ff7726e045
commit
310d92b5d1
@ -665,7 +665,8 @@ AudioControls::onSocialButtonClicked()
|
||||
QPoint socialWidgetPos = ui->socialButton->pos();
|
||||
socialWidgetPos.rx() += ui->socialButton->width() / 2;
|
||||
socialWidgetPos.ry() += 6;
|
||||
m_socialWidget.data()->setPosition( m_socialWidget.data()->mapFromGlobal( ui->socialButton->parentWidget()->mapToGlobal( socialWidgetPos ) ) );
|
||||
|
||||
m_socialWidget.data()->setPosition( ui->metaDataArea->mapToGlobal( socialWidgetPos ) );
|
||||
m_socialWidget.data()->setQuery( m_currentTrack->toQuery() );
|
||||
m_socialWidget.data()->show();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user