QTfrontend/model/HatModel.cpp
changeset 8434 4821897a0f10
parent 8385 9e8924ff9813
child 9080 9b42757d7e71
equal deleted inserted replaced
8432:f2d57e987ba9 8434:4821897a0f10
    74 
    74 
    75         if (isReserved) continue; // For some reason, reserved hats were added in 9.19-dev, so this will hide them. Uncomment to show them.
    75         if (isReserved) continue; // For some reason, reserved hats were added in 9.19-dev, so this will hide them. Uncomment to show them.
    76 
    76 
    77         QString str = hatsList.at(i);
    77         QString str = hatsList.at(i);
    78         str = str.remove(QRegExp("\\.png$"));
    78         str = str.remove(QRegExp("\\.png$"));
    79         QPixmap pix(            
    79         QPixmap pix(
    80                 "physfs://Graphics/Hats/" + QString(isReserved?"Reserved/":"") + str +
    80                 "physfs://Graphics/Hats/" + QString(isReserved?"Reserved/":"") + str +
    81                 ".png"           
    81                 ".png"
    82         );
    82         );
    83 
    83 
    84         // rename properly
    84         // rename properly
    85         if (isReserved)
    85         if (isReserved)
    86             str = "Reserved "+str.remove(0,32);
    86             str = "Reserved "+str.remove(0,32);