summaryrefslogtreecommitdiff
path: root/src/dic-options/FieldsView.h
blob: 6944474cc7fdc89bb0576a372b26859fd7d21674 (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 FIELDSVIEW_H
#define FIELDSVIEW_H

#include <QTableView>

#include "FieldsListModel.h"

class FieldsView : public QTableView
{
    Q_OBJECT
public:
    FieldsView(QWidget *parent = 0);

    FieldsListModel* model() const
        { return qobject_cast<FieldsListModel*>(QAbstractItemView::model()); }

    void startDrag(Qt::DropActions supportedActions);
    void setModel(FieldsListModel *aModel);
public slots:
    void selectIndexes(QList<QPersistentModelIndex> aIndexes);

};

#endif // FIELDSVIEW_H