QTfrontend/itemNum.cpp
changeset 2072 6e0fcbcc3f60
parent 1904 20348675b015
child 2098 c977d7f2aa09
equal deleted inserted replaced
2071:0faa147c47df 2072:6e0fcbcc3f60
    23 
    23 
    24 ItemNum::ItemNum(const QImage& im, QWidget * parent, unsigned char min, unsigned char max) :
    24 ItemNum::ItemNum(const QImage& im, QWidget * parent, unsigned char min, unsigned char max) :
    25   QFrame(parent), m_im(im), infinityState(false), nonInteractive(false), minItems(min), maxItems(max),
    25   QFrame(parent), m_im(im), infinityState(false), nonInteractive(false), minItems(min), maxItems(max),
    26   numItems(min+2 >= max ? min : min+2)
    26   numItems(min+2 >= max ? min : min+2)
    27 {
    27 {
       
    28     setAttribute(Qt::WA_PaintOnScreen, true);
    28 }
    29 }
    29 
    30 
    30 ItemNum::~ItemNum()
    31 ItemNum::~ItemNum()
    31 {
    32 {
    32 }
    33 }