QTfrontend/selectWeapon.cpp
changeset 640 e69b651bb336
parent 639 69d7ff3ab6f0
child 643 281af1f040fb
equal deleted inserted replaced
639:69d7ff3ab6f0 640:e69b651bb336
    41   lbl->setMaximumWidth(30);
    41   lbl->setMaximumWidth(30);
    42   lbl->setGeometry(0, 0, 30, 30);
    42   lbl->setGeometry(0, 0, 30, 30);
    43   hbLayout->addWidget(lbl);
    43   hbLayout->addWidget(lbl);
    44 
    44 
    45   WeaponItem* item=new WeaponItem(QImage(":/res/M2Round2.jpg"), this);
    45   WeaponItem* item=new WeaponItem(QImage(":/res/M2Round2.jpg"), this);
       
    46   item->setInfinityState(true);
    46   hbLayout->addWidget(item);
    47   hbLayout->addWidget(item);
    47 
    48 
    48   hbLayout->setStretchFactor(lbl, 1);
    49   hbLayout->setStretchFactor(lbl, 1);
    49   hbLayout->setStretchFactor(item, 99);
    50   hbLayout->setStretchFactor(item, 99);
    50   hbLayout->setAlignment(lbl, Qt::AlignLeft | Qt::AlignTop);
    51   hbLayout->setAlignment(lbl, Qt::AlignLeft | Qt::AlignTop);