blob: d5435f35c1558b70faf935809d4a85335b51503a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "block.h"
#include <Qt>
Block::Block(Actor::Type type)
{
if (m_pixmaps.find(type) == m_pixmaps.end()) {
QString pixmapName = ":/" + QString("block%1").arg(type);
m_pixmaps[type] = QPixmap( pixmapName );
}
setPixmap( m_pixmaps.find(type)->second );
}
|