mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
support active window when clicked
Change-Id: If5cdd67b225f7ce86e476e9e0bb04d65c1ad41ed
This commit is contained in:
parent
cb4d3be107
commit
336c6b25dd
Notes:
Deepin Code Review
2017-05-24 10:32:54 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Wed, 24 May 2017 10:32:48 +0800 Reviewed-on: https://cr.deepin.io/23365 Project: dde/dde-dock Branch: refs/heads/master
@ -47,6 +47,13 @@ void FloatingPreview::paintEvent(QPaintEvent *e)
|
||||
painter.fillRect(rect(), Qt::red);
|
||||
}
|
||||
|
||||
void FloatingPreview::mouseReleaseEvent(QMouseEvent *e)
|
||||
{
|
||||
QWidget::mouseReleaseEvent(e);
|
||||
|
||||
emit m_tracked->clicked(m_tracked->wid());
|
||||
}
|
||||
|
||||
void FloatingPreview::onCloseBtnClicked()
|
||||
{
|
||||
Q_ASSERT(!m_tracked.isNull());
|
||||
|
@ -24,6 +24,7 @@ public slots:
|
||||
|
||||
private:
|
||||
void paintEvent(QPaintEvent *e);
|
||||
void mouseReleaseEvent(QMouseEvent *e);
|
||||
|
||||
private slots:
|
||||
void onCloseBtnClicked();
|
||||
|
Loading…
x
Reference in New Issue
Block a user