QTfrontend/selectWeapon.cpp
changeset 5543 5e597b725316
parent 5112 4e2ebd8ac298
equal deleted inserted replaced
5541:ec3685a583a5 5543:5e597b725316
   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
   132         if (k % 4 == 0) ++j;
   133         if (k % 4 == 0) ++j;
   133         SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this);
   134         SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this);
   134         weaponItems[i].append(swi);
   135         weaponItems[i].append(swi);
   135         p1Layout->addWidget(swi, j, k % 4);
   136         p1Layout->addWidget(swi, j, k % 4);
   136 
   137