mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
28 lines
471 B
C++
28 lines
471 B
C++
#ifndef PREVIEWWIDGET_H
|
|
#define PREVIEWWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
class PreviewWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PreviewWidget(const WId wid, QWidget *parent = 0);
|
|
|
|
signals:
|
|
void requestActivateWindow(const WId wid) const;
|
|
|
|
private slots:
|
|
void refershImage();
|
|
|
|
private:
|
|
void paintEvent(QPaintEvent *e);
|
|
void mouseReleaseEvent(QMouseEvent *e);
|
|
|
|
private:
|
|
const WId m_wid;
|
|
QPixmap m_pixmap;
|
|
};
|
|
|
|
#endif // PREVIEWWIDGET_H
|