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:
parent
1a338aa602
commit
8488eac070
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user