1
0
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:
Leo Franchi 2012-07-25 17:58:31 -04:00
parent 810c933e93
commit e62afc6ed7

View File

@ -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();