QTfrontend/ui/widget/selectWeapon.cpp
changeset 6472 bced12412f94
parent 6060 fdfc01419815
child 6479 4f08821cbff5
equal deleted inserted replaced
6471:010ec2fa7d7b 6472:bced12412f94
   127 
   127 
   128     int j = -1;
   128     int j = -1;
   129     int i = 0, k = 0;
   129     int i = 0, k = 0;
   130     for(; i < m_numItems; ++i) {
   130     for(; i < m_numItems; ++i) {
   131         if (i == 6) continue;
   131         if (i == 6) continue;
   132         if (i == 52) continue; // Disable structures for now
       
   133         if (k % 4 == 0) ++j;
   132         if (k % 4 == 0) ++j;
   134         SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this);
   133         SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this);
   135         weaponItems[i].append(swi);
   134         weaponItems[i].append(swi);
   136         p1Layout->addWidget(swi, j, k % 4);
   135         p1Layout->addWidget(swi, j, k % 4);
   137 
   136