mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix wm icon geometry error when move
Change-Id: Ib8c290a4c19c504a40f9c64c53993f3bf141cfd1
This commit is contained in:
parent
837db1f839
commit
2bb12de620
Notes:
Deepin Code Review
2017-06-08 18:07:44 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Thu, 08 Jun 2017 18:07:41 +0800 Reviewed-on: https://cr.deepin.io/23709 Project: dde/dde-dock Branch: refs/heads/master
@ -128,6 +128,13 @@ int AppItem::itemBaseWidth()
|
||||
return itemBaseHeight() * 1.4;
|
||||
}
|
||||
|
||||
void AppItem::moveEvent(QMoveEvent *e)
|
||||
{
|
||||
DockItem::moveEvent(e);
|
||||
|
||||
m_updateIconGeometryTimer->start();
|
||||
}
|
||||
|
||||
int AppItem::itemBaseHeight()
|
||||
{
|
||||
if (DockDisplayMode == Efficient)
|
||||
|
@ -32,6 +32,7 @@ signals:
|
||||
void requestCancelPreview() const;
|
||||
|
||||
private:
|
||||
void moveEvent(QMoveEvent *e);
|
||||
void paintEvent(QPaintEvent *e);
|
||||
void mouseReleaseEvent(QMouseEvent *e);
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user