Fix preview does not show correctly when resizePreview

This commit is contained in:
杨万青 2015-07-20 09:21:38 +08:00
parent 0f07e83b4f
commit dea0ca42ca
2 changed files with 6 additions and 2 deletions

View File

@ -117,7 +117,11 @@ void AbstractDockItem::cancelHide()
void AbstractDockItem::resizePreview()
{
m_previewAR->resizeWithContent();
m_previewAR->showAtBottom(globalX() + width() / 2,globalY() - 5);
if (!m_previewAR->isHidden())
{
m_previewAR->showAtBottom(globalX() + width() / 2,globalY() - 5);
return;
}
}
void AbstractDockItem::showMenu()

View File

@ -56,7 +56,7 @@ void PluginItemWrapper::leaveEvent(QEvent *)
{
emit mouseExited();
hidePreview();
// hidePreview();
}