]> Creatis software - cpPlugins.git/blobdiff - libs/cpPipelineEditor/Block.cxx
...
[cpPlugins.git] / libs / cpPipelineEditor / Block.cxx
index d750c9c60106aa19b2c09e335b1dd3fed1285550..315b197117ef55fa2de6dff5cb1c606d5fd37368 100644 (file)
@@ -8,6 +8,15 @@ Block( QGraphicsItem* parent, QGraphicsScene* scene )
 {
   this->m_SelectedColor = Qt::darkYellow;
   this->m_NotSelectedColor = Qt::darkGreen;
+
+  QPainterPath p;
+  p.addRoundedRect( -50, -50, 50, 50, 5, 5 );
+
+  this->setPath( p );
+  this->setPen( QPen( this->m_NotSelectedColor ) );
+  this->setBrush( this->m_NotSelectedColor );
+  this->setFlag( QGraphicsItem::ItemIsMovable );
+  this->setFlag( QGraphicsItem::ItemIsSelectable );
 }
 
 // -------------------------------------------------------------------------
@@ -37,7 +46,6 @@ paint(
 
   } // fi
   painter->drawPath( this->path( ) );
-
 }
 
 // eof - $RCSfile$