mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Add debug
This commit is contained in:
parent
810c933e93
commit
e62afc6ed7
@ -375,6 +375,7 @@ SourceTreeView::deletePlaylist( const QModelIndex& idxIn )
|
||||
m_popupDialog.data()->setOkButtonText( tr( "Delete" ) );
|
||||
m_popupDialog.data()->setProperty( "idx", QVariant::fromValue< QModelIndex >( idx ) );
|
||||
|
||||
qDebug() << "POPUP HAS HEIGHT:" << m_popupDialog.data()->sizeHint().height();
|
||||
const QPoint rightCenter = viewport()->mapToGlobal( visualRect( idx ).topRight() + QPoint( 0, visualRect( idx ).height() / 2 ) );
|
||||
m_popupDialog.data()->move( rightCenter.x() - m_popupDialog.data()->offset(), rightCenter.y() - m_popupDialog.data()->sizeHint().height() / 2. );
|
||||
m_popupDialog.data()->show();
|
||||
|
Loading…
x
Reference in New Issue
Block a user