equal
deleted
inserted
replaced
35 QStandardItemModel(parent) |
35 QStandardItemModel(parent) |
36 {} |
36 {} |
37 |
37 |
38 void HatModel::loadHats() |
38 void HatModel::loadHats() |
39 { |
39 { |
|
40 qDebug("HatModel::loadHats()"); |
|
41 |
40 // this method resets the contents of this model (important to know for views). |
42 // this method resets the contents of this model (important to know for views). |
41 QStandardItemModel::beginResetModel(); |
43 QStandardItemModel::beginResetModel(); |
42 QStandardItemModel::clear(); |
44 QStandardItemModel::clear(); |
43 |
45 |
44 // New hats to add to model |
46 // New hats to add to model |