show present window on clicked

Change-Id: I5792c1ae358f06e42f9af63fea55c23363c1aa1b
This commit is contained in:
石博文 2016-08-30 16:34:02 +08:00
parent 48bdbf7467
commit dd2777a742
Notes: Deepin Code Review 2016-08-31 07:25:38 +00:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Wed, 31 Aug 2016 07:25:38 +0000
Reviewed-on: https://cr.deepin.io/15680
Project: dde/dde-dock
Branch: refs/heads/master
3 changed files with 13 additions and 0 deletions

View File

@ -117,6 +117,11 @@ public Q_SLOTS: // METHODS
return asyncCall(QStringLiteral("RequestUndock"));
}
inline QDBusPendingReply<> PresentWindows()
{
return asyncCall(QStringLiteral("PresentWindows"));
}
Q_SIGNALS: // SIGNALS
// begin property changed signals
void ActiveChanged();

View File

@ -253,6 +253,13 @@ void AppItem::mouseMoveEvent(QMouseEvent *e)
startDrag();
}
void AppItem::wheelEvent(QWheelEvent *e)
{
QWidget::wheelEvent(e);
m_itemEntry->PresentWindows();
}
void AppItem::resizeEvent(QResizeEvent *e)
{
DockItem::resizeEvent(e);

View File

@ -29,6 +29,7 @@ private:
void mouseReleaseEvent(QMouseEvent *e);
void mousePressEvent(QMouseEvent *e);
void mouseMoveEvent(QMouseEvent *e);
void wheelEvent(QWheelEvent *e);
void resizeEvent(QResizeEvent *e);
void dragEnterEvent(QDragEnterEvent *e);
void dropEvent(QDropEvent *e);