mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
show present window on clicked
Change-Id: I5792c1ae358f06e42f9af63fea55c23363c1aa1b
This commit is contained in:
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
@ -117,6 +117,11 @@ public Q_SLOTS: // METHODS
|
|||||||
return asyncCall(QStringLiteral("RequestUndock"));
|
return asyncCall(QStringLiteral("RequestUndock"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline QDBusPendingReply<> PresentWindows()
|
||||||
|
{
|
||||||
|
return asyncCall(QStringLiteral("PresentWindows"));
|
||||||
|
}
|
||||||
|
|
||||||
Q_SIGNALS: // SIGNALS
|
Q_SIGNALS: // SIGNALS
|
||||||
// begin property changed signals
|
// begin property changed signals
|
||||||
void ActiveChanged();
|
void ActiveChanged();
|
||||||
|
@ -253,6 +253,13 @@ void AppItem::mouseMoveEvent(QMouseEvent *e)
|
|||||||
startDrag();
|
startDrag();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AppItem::wheelEvent(QWheelEvent *e)
|
||||||
|
{
|
||||||
|
QWidget::wheelEvent(e);
|
||||||
|
|
||||||
|
m_itemEntry->PresentWindows();
|
||||||
|
}
|
||||||
|
|
||||||
void AppItem::resizeEvent(QResizeEvent *e)
|
void AppItem::resizeEvent(QResizeEvent *e)
|
||||||
{
|
{
|
||||||
DockItem::resizeEvent(e);
|
DockItem::resizeEvent(e);
|
||||||
|
@ -29,6 +29,7 @@ private:
|
|||||||
void mouseReleaseEvent(QMouseEvent *e);
|
void mouseReleaseEvent(QMouseEvent *e);
|
||||||
void mousePressEvent(QMouseEvent *e);
|
void mousePressEvent(QMouseEvent *e);
|
||||||
void mouseMoveEvent(QMouseEvent *e);
|
void mouseMoveEvent(QMouseEvent *e);
|
||||||
|
void wheelEvent(QWheelEvent *e);
|
||||||
void resizeEvent(QResizeEvent *e);
|
void resizeEvent(QResizeEvent *e);
|
||||||
void dragEnterEvent(QDragEnterEvent *e);
|
void dragEnterEvent(QDragEnterEvent *e);
|
||||||
void dropEvent(QDropEvent *e);
|
void dropEvent(QDropEvent *e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user