Martchus
69ffaeb1f3
The behavior of clang-format slightly changed in Clang 5.0.0: http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
33 lines
594 B
C++
33 lines
594 B
C++
#ifndef DIRVIEW_H
|
|
#define DIRVIEW_H
|
|
|
|
#include <QTreeView>
|
|
|
|
namespace Data {
|
|
struct SyncthingDir;
|
|
}
|
|
|
|
namespace QtGui {
|
|
|
|
class DirView : public QTreeView {
|
|
Q_OBJECT
|
|
public:
|
|
DirView(QWidget *parent = nullptr);
|
|
|
|
Q_SIGNALS:
|
|
void openDir(const Data::SyncthingDir &dir);
|
|
void scanDir(const Data::SyncthingDir &dir);
|
|
void pauseResumeDir(const Data::SyncthingDir &dir);
|
|
|
|
protected:
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
|
|
private Q_SLOTS:
|
|
void showContextMenu();
|
|
void copySelectedItem();
|
|
void copySelectedItemPath();
|
|
};
|
|
} // namespace QtGui
|
|
|
|
#endif // DIRVIEW_H
|