QTfrontend/model/HatModel.cpp
changeset 9738 18bb6d1fc9d9
parent 9080 9b42757d7e71
child 9998 736015b847e3
equal deleted inserted replaced
9737:f0769402350c 9738:18bb6d1fc9d9
    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