author | displacer |
Mon, 10 Dec 2007 22:55:14 +0000 | |
changeset 642 | 3178a83c7043 |
parent 641 | 597ec71895b1 |
child 643 | 281af1f040fb |
QTfrontend/itemNum.cpp | file | annotate | diff | comparison | revisions | |
QTfrontend/weaponItem.cpp | file | annotate | diff | comparison | revisions |
--- a/QTfrontend/itemNum.cpp Mon Dec 10 22:45:04 2007 +0000 +++ b/QTfrontend/itemNum.cpp Mon Dec 10 22:55:14 2007 +0000 @@ -22,7 +22,8 @@ #include <QPainter> ItemNum::ItemNum(const QImage& im, QWidget * parent, unsigned char min, unsigned char max) : - m_im(im), QWidget(parent), nonInteractive(false), minItems(min), maxItems(max), numItems(min), + m_im(im), QWidget(parent), nonInteractive(false), minItems(min), maxItems(max), + numItems(min+2 >= max ? min : min+2), infinityState(false) { } @@ -59,7 +60,7 @@ QPainter painter(this); if (numItems==maxItems+1) { - QRect target(0, 0, 250, 32); + QRect target(0, 0, 100, 32); painter.drawImage(target, QImage(":/res/infinity.png")); } else { for(int i=0; i<numItems; i++) {