summaryrefslogtreecommitdiff
path: root/src/dic-options/PackFieldsView.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
committerJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
commitd24f813f3f2a05c112e803e4256b53535895fc98 (patch)
tree601e6ae9a1cd44bcfdcf91739a5ca36aedd827c9 /src/dic-options/PackFieldsView.h
Initial mirror commitHEADmaster
Diffstat (limited to 'src/dic-options/PackFieldsView.h')
-rw-r--r--src/dic-options/PackFieldsView.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/dic-options/PackFieldsView.h b/src/dic-options/PackFieldsView.h
new file mode 100644
index 0000000..7c4aeea
--- /dev/null
+++ b/src/dic-options/PackFieldsView.h
@@ -0,0 +1,24 @@
+#ifndef PACKFIELDSVIEW_H
+#define PACKFIELDSVIEW_H
+
+#include <QListView>
+
+#include "PackFieldsListModel.h"
+#include "DraggableListModel.h"
+
+class PackFieldsView : public QListView
+{
+ Q_OBJECT
+public:
+ PackFieldsView(QWidget *parent = 0);
+
+ void setModel(QAbstractItemModel *aModel);
+ DraggableListModel* model() const
+ { return qobject_cast<DraggableListModel*>(QAbstractItemView::model()); }
+public slots:
+ void selectIndexes(QList<QPersistentModelIndex> aIndexes);
+ void updateCurrent();
+
+};
+
+#endif