mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Add debug
This commit is contained in:
@@ -375,6 +375,7 @@ SourceTreeView::deletePlaylist( const QModelIndex& idxIn )
|
|||||||
m_popupDialog.data()->setOkButtonText( tr( "Delete" ) );
|
m_popupDialog.data()->setOkButtonText( tr( "Delete" ) );
|
||||||
m_popupDialog.data()->setProperty( "idx", QVariant::fromValue< QModelIndex >( idx ) );
|
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 ) );
|
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()->move( rightCenter.x() - m_popupDialog.data()->offset(), rightCenter.y() - m_popupDialog.data()->sizeHint().height() / 2. );
|
||||||
m_popupDialog.data()->show();
|
m_popupDialog.data()->show();
|
||||||
|
Reference in New Issue
Block a user