mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Merge "move popup window at item move event"
This commit is contained in:
commit
6825063b6a
@ -56,7 +56,7 @@ DockItem::ItemType DockItem::itemType() const
|
||||
|
||||
void DockItem::updatePopupPosition()
|
||||
{
|
||||
if (!m_popupShown)
|
||||
if (!m_popupShown || !PopupWindow->isVisible())
|
||||
return;
|
||||
|
||||
const QPoint p = popupMarkPoint();
|
||||
@ -66,6 +66,11 @@ void DockItem::updatePopupPosition()
|
||||
void DockItem::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
QWidget::paintEvent(e);
|
||||
}
|
||||
|
||||
void DockItem::moveEvent(QMoveEvent *e)
|
||||
{
|
||||
QWidget::moveEvent(e);
|
||||
|
||||
updatePopupPosition();
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ signals:
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *e);
|
||||
void moveEvent(QMoveEvent *e);
|
||||
void mouseMoveEvent(QMouseEvent *e);
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
void enterEvent(QEvent *e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user