QTfrontend/model/HatModel.cpp
branchwebgl
changeset 9950 2759212a27de
parent 9738 18bb6d1fc9d9
child 9998 736015b847e3
equal deleted inserted replaced
9521:8054d9d775fd 9950:2759212a27de
    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