fix poup applet appear

Change-Id: If869174e777d57fbb8ee124107447071c2ef4dae
This commit is contained in:
石博文 2016-07-27 14:49:29 +08:00 committed by Hualet Wang
parent af07f1451b
commit 9a605bbe24

View File

@ -77,8 +77,9 @@ bool DockPopupWindow::eventFilter(QObject *o, QEvent *e)
if (o != getContent() || e->type() != QEvent::Resize)
return false;
// show(m_lastPoint, m_model);
QMetaObject::invokeMethod(this, "show", Qt::QueuedConnection, Q_ARG(QPoint, m_lastPoint), Q_ARG(bool, m_model));
// FIXME: ensure position move after global mouse release event
QTimer::singleShot(100, this, [this] {show(m_lastPoint, m_model);});
return false;
}