-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatasetmodel.cpp
More file actions
53 lines (38 loc) · 911 Bytes
/
datasetmodel.cpp
File metadata and controls
53 lines (38 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "datasetmodel.h"
DataSetModel::DataSetModel(QObject *parent) :
QAbstractItemModel(parent)
{
}
Qt::ItemFlags DataSetModel::flags(const QModelIndex &index) const
{
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
}
QVariant DataSetModel::data(const QModelIndex &index, int role) const
{
switch (role)
{
case Qt::DisplayRole:
break;
default:
break;
}
return QVariant();
}
QVariant DataSetModel::headerData(int section, Qt::Orientation orientation, int role) const
{
return QVariant();
}
int DataSetModel::rowCount(const QModelIndex &parent) const
{
return 0;
}
int DataSetModel::columnCount(const QModelIndex &parent) const
{
return 0;
}
QModelIndex DataSetModel::index(int row, int column, const QModelIndex &parent) const
{
}
QModelIndex DataSetModel::parent(const QModelIndex &child) const
{
}