From 2bb12de620b12e57e704ff0c8db85359723a3842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=8D=9A=E6=96=87?= Date: Thu, 8 Jun 2017 16:19:12 +0800 Subject: [PATCH] fix wm icon geometry error when move Change-Id: Ib8c290a4c19c504a40f9c64c53993f3bf141cfd1 --- frame/item/appitem.cpp | 7 +++++++ frame/item/appitem.h | 1 + 2 files changed, 8 insertions(+) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 656e2dd77..9e07b137d 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -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) diff --git a/frame/item/appitem.h b/frame/item/appitem.h index d3621cfeb..1d6f5fb43 100644 --- a/frame/item/appitem.h +++ b/frame/item/appitem.h @@ -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);