mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
37 lines
654 B
C++
37 lines
654 B
C++
#ifndef POPUPCONTROLWIDGET_H
|
|
#define POPUPCONTROLWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QFileSystemWatcher>
|
|
|
|
#include <dlinkbutton.h>
|
|
|
|
class PopupControlWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PopupControlWidget(QWidget *parent = 0);
|
|
|
|
bool empty() const;
|
|
QSize sizeHint() const;
|
|
|
|
signals:
|
|
void emptyChanged(const bool empty) const;
|
|
|
|
private slots:
|
|
void openTrashFloder();
|
|
void clearTrashFloder();
|
|
void trashStatusChanged();
|
|
|
|
private:
|
|
bool m_empty;
|
|
|
|
Dtk::Widget::DLinkButton *m_openBtn;
|
|
Dtk::Widget::DLinkButton *m_clearBtn;
|
|
|
|
QFileSystemWatcher *m_fsWatcher;
|
|
};
|
|
|
|
#endif // POPUPCONTROLWIDGET_H
|