summaryrefslogtreecommitdiffstats
path: root/tests/pysidetest/testview.h
blob: 1a65ea4599a106eddf842fee6a771e784dbcadde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef TESTVIEW_H
#define TESTVIEW_H

#include <QObject>
#include <QAbstractListModel>
#ifdef pysidetest_EXPORTS
#define PYSIDE_EXPORTS 1
#endif
#include "pysidemacros.h"

class PYSIDE_API TestView : public QObject
{
    Q_OBJECT
public:
    TestView(QAbstractListModel* model, QObject* parent = 0) : QObject(parent), m_model(model) {}
    QAbstractListModel* model() { return m_model; }
    QVariant getData();
private:
    QAbstractListModel* m_model;
};

#endif // TESTVIEW_H