QTfrontend/itemNum.cpp
changeset 643 281af1f040fb
parent 642 3178a83c7043
child 883 07a568ba44e0
--- a/QTfrontend/itemNum.cpp	Mon Dec 10 22:55:14 2007 +0000
+++ b/QTfrontend/itemNum.cpp	Mon Dec 10 23:09:43 2007 +0000
@@ -55,6 +55,11 @@
   repaint();
 }
 
+QSize ItemNum::sizeHint () const
+{
+  return QSize((maxItems+1)*12, 32);
+}
+
 void ItemNum::paintEvent(QPaintEvent* event)
 {
   QPainter painter(this);