mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
use large drag pixmap on fashion mode
Change-Id: Id55b6e5f544256e7a32bc07663b514b4d12c82eb
This commit is contained in:
parent
5fcd96377c
commit
20effa9c32
Notes:
Deepin Code Review
2016-08-09 09:05:02 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Tue, 09 Aug 2016 09:05:02 +0000 Reviewed-on: https://cr.deepin.io/15041 Project: dde/dde-dock Branch: refs/heads/master
@ -342,9 +342,11 @@ void AppItem::startDrag()
|
||||
m_draging = true;
|
||||
update();
|
||||
|
||||
const QPixmap dragPix = DockDisplayMode == Dock::Fashion ? m_largeIcon : m_smallIcon;
|
||||
|
||||
QDrag *drag = new QDrag(this);
|
||||
drag->setPixmap(m_smallIcon);
|
||||
drag->setHotSpot(m_smallIcon.rect().center());
|
||||
drag->setPixmap(dragPix);
|
||||
drag->setHotSpot(dragPix.rect().center());
|
||||
drag->setMimeData(new QMimeData);
|
||||
|
||||
emit dragStarted();
|
||||
|
Loading…
x
Reference in New Issue
Block a user