1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-05 08:32:42 +02:00

TWK-531: Show (-) on new item after deleting an item

This commit is contained in:
Leo Franchi 2011-11-20 22:38:22 -05:00
parent 1a338aa602
commit 8488eac070

View File

@ -431,8 +431,14 @@ SourceDelegate::editorEvent ( QEvent* event, QAbstractItemModel* model, const QS
if ( r.contains( ev->pos() ) )
{
if ( event->type() == QEvent::MouseButtonRelease )
{
gpi->removeFromList();
// Send a new mouse event to the view, since if the mouse is now over another item's delete area we want it to show up
QMouseEvent* ev = new QMouseEvent( QEvent::MouseMove, m_parent->viewport()->mapFromGlobal( QCursor::pos() ), Qt::NoButton, Qt::NoButton, Qt::NoModifier );
QApplication::postEvent( m_parent->viewport(), ev );
}
return true;
}
}