mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
38 lines
597 B
C++
38 lines
597 B
C++
#ifndef FLOATINGPREVIEW_H
|
|
#define FLOATINGPREVIEW_H
|
|
|
|
#include <QWidget>
|
|
#include <QPointer>
|
|
|
|
#include <dimagebutton.h>
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class AppSnapshot;
|
|
class FloatingPreview : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FloatingPreview(QWidget *parent = 0);
|
|
|
|
signals:
|
|
void requestMove(const QPoint &p) const;
|
|
|
|
public slots:
|
|
void trackWindow(AppSnapshot * const snap);
|
|
|
|
private:
|
|
void paintEvent(QPaintEvent *e);
|
|
|
|
private slots:
|
|
void onCloseBtnClicked();
|
|
|
|
private:
|
|
QPointer<AppSnapshot> m_tracked;
|
|
|
|
DImageButton *m_closeBtn;
|
|
};
|
|
|
|
#endif // FLOATINGPREVIEW_H
|