QTfrontend/SquareLabel.cpp
changeset 2098 c977d7f2aa09
parent 2072 6e0fcbcc3f60
child 2948 3f21a9dc93d0
--- a/QTfrontend/SquareLabel.cpp	Sat May 23 21:24:43 2009 +0000
+++ b/QTfrontend/SquareLabel.cpp	Sun May 24 02:41:34 2009 +0000
@@ -19,11 +19,12 @@
 #include <QPaintEvent>
 #include <QPainter>
 #include "SquareLabel.h"
+#include "hwform.h"
 
 SquareLabel::SquareLabel(QWidget * parent) :
 	QWidget(parent)
 {
-    setAttribute(Qt::WA_PaintOnScreen, true);
+    if(frontendEffects) setAttribute(Qt::WA_PaintOnScreen, true);
 }
 
 void SquareLabel::paintEvent(QPaintEvent * event)