#ifndef DOWNLOADVIEW_H #define DOWNLOADVIEW_H #include namespace Data { struct SyncthingItemDownloadProgress; struct SyncthingDir; class SyncthingDownloadModel; } // namespace Data namespace QtGui { class DownloadView : public QTreeView { Q_OBJECT public: using ModelType = Data::SyncthingDownloadModel; using SortFilterModelType = void; explicit DownloadView(QWidget *parent = nullptr); Q_SIGNALS: void openDir(const Data::SyncthingDir &dir); void openItemDir(const Data::SyncthingItemDownloadProgress &dir); protected: void mouseReleaseEvent(QMouseEvent *event) override; private Q_SLOTS: void showContextMenu(const QPoint &position); private: void emitOpenDir(QPair info); }; } // namespace QtGui #endif // DOWNLOADVIEW_H