summaryrefslogtreecommitdiff
path: root/src/dic-options/PackFieldsView.h
blob: 7c4aeea0df7cf2af17256f732f17e825eaec883d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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