src/hbcore/primitives/hbtoucharea.cpp
changeset 5 627c4a0fd0e7
parent 1 f7ac710697a9
child 7 923ff622b8b9
--- a/src/hbcore/primitives/hbtoucharea.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/primitives/hbtoucharea.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -62,7 +62,7 @@
     // Because this method is static we need to toggle QGraphicsItem::ItemHasNoContents flag 
     // value hard way. This is RnD feature anyway.
     foreach (HbMainWindow *window, hbInstance->allMainWindows()) {
-        QGraphicsScene *scene = static_cast<QGraphicsScene*>(window->scene());
+        QGraphicsScene *scene = static_cast<QGraphicsScene*>(window->scene()); //krazy:exclude=qclasses
         foreach( QGraphicsItem *item, scene->items() ) {
             if (HbTouchArea *widget = qgraphicsitem_cast<HbTouchArea *>(item)) {
                 widget->setFlag(QGraphicsItem::ItemHasNoContents, !enabled);
@@ -132,7 +132,7 @@
     // The paint method is called only if HbTouchAreaPrivate::outlinesEnabled is true (RnD feature)
     // because flag QGraphicsItem::ItemHasNoContents is set otherwise.
     if (HbTouchAreaPrivate::outlinesEnabled) {
-        painter->setPen(Qt::red);
+        painter->setPen(Qt::red); //krazy:exclude=qenums
         painter->drawLine(contentsRect().topLeft(), contentsRect().bottomRight());
         painter->drawLine(contentsRect().topRight(), contentsRect().bottomLeft()); 
         painter->setBrush(QBrush(QColor(255, 0, 0, 50)));