bugfix: Item's title will show in top-left corner on first open

Change-Id: I0a1afb72b49743feeebeabd0d3f41ae0643d9c2d
This commit is contained in:
杨万青 2015-09-16 10:09:00 +08:00
parent 9e047993ec
commit be985ca876
Notes: Deepin Code Review 2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: <mr.asianwang@gmail.com>
Submitted-by: <mr.asianwang@gmail.com>
Submitted-at: Wed, 16 Sep 2015 10:01:15 +0800
Reviewed-on: https://cr.deepin.io/7066
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -146,6 +146,7 @@ void AbstractDockItem::showPreview()
}
if (tmpContent) {
m_titleLabel->setParent(NULL);
m_previewAR->setContent(tmpContent);
m_previewAR->showPreview(ArrowRectangle::ArrowBottom,
globalX() + width() / 2,