mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix item visible when drag out of panel
Change-Id: I7fff7fb127d59685aa3f09f0c4517ab3715c5b1c
This commit is contained in:
parent
35c5bd15f8
commit
723f14838f
@ -137,6 +137,7 @@ void AppItem::startDrag()
|
|||||||
qDebug() << "dnd result: " << result;
|
qDebug() << "dnd result: " << result;
|
||||||
|
|
||||||
m_draging = false;
|
m_draging = false;
|
||||||
|
setVisible(true);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,5 +142,9 @@ void MainPanel::itemDragStarted()
|
|||||||
{
|
{
|
||||||
DragingItem = qobject_cast<DockItem *>(sender());
|
DragingItem = qobject_cast<DockItem *>(sender());
|
||||||
|
|
||||||
DragingItem->setVisible(rect().contains(QCursor::pos()));
|
QRect rect;
|
||||||
|
rect.setTopLeft(mapToGlobal(pos()));
|
||||||
|
rect.setSize(size());
|
||||||
|
|
||||||
|
DragingItem->setVisible(rect.contains(QCursor::pos()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user