equal
deleted
inserted
replaced
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); |