mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
add drag icon
Change-Id: If99aae47d08a3d074214565d132de1fef9bf605b
This commit is contained in:
parent
addd77b263
commit
f8233ed0eb
@ -219,12 +219,9 @@ void AppItem::startDrag()
|
||||
m_draging = true;
|
||||
update();
|
||||
|
||||
QPixmap pixmap(25, 25);
|
||||
pixmap.fill(Qt::red);
|
||||
|
||||
QDrag *drag = new QDrag(this);
|
||||
drag->setPixmap(pixmap);
|
||||
drag->setHotSpot(pixmap.rect().center());
|
||||
drag->setPixmap(m_smallIcon);
|
||||
drag->setHotSpot(m_smallIcon.rect().center());
|
||||
drag->setMimeData(new QMimeData);
|
||||
|
||||
emit dragStarted();
|
||||
|
Loading…
x
Reference in New Issue
Block a user