diff options
Diffstat (limited to 'src/dic-options/PackFieldsView.h')
-rw-r--r-- | src/dic-options/PackFieldsView.h | 24 |
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 |