changeset 1238 | 914bd2a9a249 |
parent 1237 | 7f3105a15d5d |
child 1239 | 4901abe4c3b0 |
1237:7f3105a15d5d | 1238:914bd2a9a249 |
---|---|
43 if (parent.isValid()) |
43 if (parent.isValid()) |
44 return 0; |
44 return 0; |
45 else |
45 else |
46 return 2; |
46 return 2; |
47 } |
47 } |
48 |
|
49 QVariant HatsModel::data(const QModelIndex &index, |
|
50 int role) const |
|
51 { |
|
52 if (!index.isValid() || index.row() < 0 |
|
53 || index.row() >= 60 |
|
54 || role != Qt::DisplayRole) |
|
55 return QVariant(); |
|
56 |
|
57 return QVariant();//games[index.row()][index.column()]; |
|
58 } |