summaryrefslogtreecommitdiffstats
path: root/itemselectionwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'itemselectionwidget.h')
-rw-r--r--itemselectionwidget.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/itemselectionwidget.h b/itemselectionwidget.h
new file mode 100644
index 0000000..0b8b48b
--- /dev/null
+++ b/itemselectionwidget.h
@@ -0,0 +1,29 @@
+#ifndef DIRSELECTIONWIDGET_H
+#define DIRSELECTIONWIDGET_H
+
+#include <QWidget>
+
+class QStandardItemModel;
+class QListView;
+class QLineEdit;
+
+class ItemSelectionWidget : public QWidget
+{
+ Q_OBJECT
+ public:
+ explicit ItemSelectionWidget(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