summaryrefslogtreecommitdiffstats
path: root/dirselectionwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'dirselectionwidget.h')
-rw-r--r--dirselectionwidget.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/dirselectionwidget.h b/dirselectionwidget.h
new file mode 100644
index 0000000..7d43326
--- /dev/null
+++ b/dirselectionwidget.h
@@ -0,0 +1,29 @@
+#ifndef DIRSELECTIONWIDGET_H
+#define DIRSELECTIONWIDGET_H
+
+#include <QWidget>
+
+class QStandardItemModel;
+class QListView;
+class QLineEdit;
+
+class DirSelectionWidget : public QWidget
+{
+ Q_OBJECT
+ public:
+ explicit DirSelectionWidget(QWidget *parent = nullptr);
+ const QStringList directories() const;
+ void setDirectories(const QStringList &dirs);
+
+ public slots:
+ void browseDir();
+ void addDir();
+ void removeDir();
+
+ private:
+ QStandardItemModel *mModel;
+ QListView *mView;
+ QLineEdit *mDir;
+};
+
+#endif // DIRSELECTIONWIDGET_H