mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Merge "auto focus popup window"
This commit is contained in:
commit
4bfaa78d66
@ -61,6 +61,14 @@ void DockPopupWindow::hide()
|
||||
DArrowRectangle::hide();
|
||||
}
|
||||
|
||||
void DockPopupWindow::enterEvent(QEvent *e)
|
||||
{
|
||||
DArrowRectangle::enterEvent(e);
|
||||
|
||||
raise();
|
||||
setFocus(Qt::ActiveWindowFocusReason);
|
||||
}
|
||||
|
||||
void DockPopupWindow::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
DArrowRectangle::mousePressEvent(e);
|
||||
|
@ -25,6 +25,7 @@ signals:
|
||||
void accept() const;
|
||||
|
||||
protected:
|
||||
void enterEvent(QEvent *e);
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
bool eventFilter(QObject *o, QEvent *e);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user