QTfrontend/model/hats.cpp
changeset 6930 d187ea93fc4f
parent 6700 e04da46ee43c
child 6952 7f70f37bbf08
equal deleted inserted replaced
6929:c305d31642ac 6930:d187ea93fc4f
    21 #include <QPainter>
    21 #include <QPainter>
    22 #include "hwconsts.h"
    22 #include "hwconsts.h"
    23 #include "hwform.h"
    23 #include "hwform.h"
    24 #include "hats.h"
    24 #include "hats.h"
    25 
    25 
    26 #include "HWDataManager.h"
    26 #include "DataManager.h"
    27 
    27 
    28 HatsModel::HatsModel(QObject* parent) :
    28 HatsModel::HatsModel(QObject* parent) :
    29     QAbstractListModel(parent)
    29     QAbstractListModel(parent)
    30 {
    30 {
    31     HWDataManager & dataMgr = HWDataManager::instance();
    31     DataManager & dataMgr = DataManager::instance();
    32 
    32 
    33     QPixmap hhpix = QPixmap(
    33     QPixmap hhpix = QPixmap(
    34                         dataMgr.findFileForRead("Graphics/Hedgehog/Idle.png")
    34                         dataMgr.findFileForRead("Graphics/Hedgehog/Idle.png")
    35                     ).copy(0, 0, 32, 32);
    35                     ).copy(0, 0, 32, 32);
    36 
    36