syncthingtray/tray/gui/dirview.h

33 lines
575 B
C
Raw Normal View History

2016-08-25 00:45:32 +02:00
#ifndef DIRVIEW_H
#define DIRVIEW_H
#include <QTreeView>
2016-09-21 21:09:12 +02:00
namespace Data {
struct SyncthingDir;
}
2016-08-25 00:45:32 +02:00
namespace QtGui {
2017-05-01 03:34:43 +02:00
class DirView : public QTreeView {
2016-08-25 00:45:32 +02:00
Q_OBJECT
public:
DirView(QWidget *parent = nullptr);
Q_SIGNALS:
2016-09-21 21:09:12 +02:00
void openDir(const Data::SyncthingDir &dir);
void scanDir(const Data::SyncthingDir &dir);
2017-02-23 15:49:58 +01:00
void pauseResumeDir(const Data::SyncthingDir &dir);
2016-08-25 00:45:32 +02:00
protected:
void mouseReleaseEvent(QMouseEvent *event);
private Q_SLOTS:
void showContextMenu();
void copySelectedItem();
2016-08-30 20:01:07 +02:00
void copySelectedItemPath();
2016-08-25 00:45:32 +02:00
};
}
#endif // DIRVIEW_H