QTfrontend/itemNum.cpp
changeset 2098 c977d7f2aa09
parent 2072 6e0fcbcc3f60
child 2377 f3fab2b09e0c
--- a/QTfrontend/itemNum.cpp	Sat May 23 21:24:43 2009 +0000
+++ b/QTfrontend/itemNum.cpp	Sun May 24 02:41:34 2009 +0000
@@ -17,6 +17,7 @@
  */
  
 #include "itemNum.h"
+#include "hwform.h"
 
 #include <QMouseEvent>
 #include <QPainter>
@@ -25,7 +26,7 @@
   QFrame(parent), m_im(im), infinityState(false), nonInteractive(false), minItems(min), maxItems(max),
   numItems(min+2 >= max ? min : min+2)
 {
-    setAttribute(Qt::WA_PaintOnScreen, true);
+    if(frontendEffects) setAttribute(Qt::WA_PaintOnScreen, true);
 }
 
 ItemNum::~ItemNum()