QTfrontend/ui/widget/itemNum.cpp
changeset 6428 2d2b5e3c59a7
parent 6153 3881126e06e8
child 6616 f77bb02b669f
equal deleted inserted replaced
6426:2d44f6561e72 6428:2d2b5e3c59a7
    25 ItemNum::ItemNum(const QImage& im, const QImage& img, QWidget * parent, unsigned char min, unsigned char max) :
    25 ItemNum::ItemNum(const QImage& im, const QImage& img, QWidget * parent, unsigned char min, unsigned char max) :
    26   QFrame(parent), m_im(im), m_img(img), infinityState(false), nonInteractive(false), minItems(min), maxItems(max),
    26   QFrame(parent), m_im(im), m_img(img), infinityState(false), nonInteractive(false), minItems(min), maxItems(max),
    27   numItems(min+2 >= max ? min : min+2)
    27   numItems(min+2 >= max ? min : min+2)
    28 {
    28 {
    29     enabled = true;
    29     enabled = true;
    30     if(frontendEffects) setAttribute(Qt::WA_PaintOnScreen, true);
    30     //if(frontendEffects) setAttribute(Qt::WA_PaintOnScreen, true);
    31 }
    31 }
    32 
    32 
    33 ItemNum::~ItemNum()
    33 ItemNum::~ItemNum()
    34 {
    34 {
    35 }
    35 }