#include "HYDROGUI_PrsPolyline.h"
+#include <QPen>
+
//=======================================================================
// name : HYDROGUI_PrsPolyline
// Purpose : Constructor
void HYDROGUI_PrsPolyline::unselect()
{
GraphicsView_Object::unselect();
+
+ // ouv: tmp
+ QPen aPen = myPolylineItem->pen();
+ aPen.setColor( Qt::black );
+ aPen.setWidth( 1 );
+ myPolylineItem->setPen( aPen );
}
//================================================================
void HYDROGUI_PrsPolyline::setSelected( bool theState )
{
GraphicsView_Object::setSelected( theState );
+
+ // ouv: tmp
+ QPen aPen = myPolylineItem->pen();
+ aPen.setColor( theState ? Qt::red : Qt::black );
+ aPen.setWidth( theState ? 2 : 1 );
+ myPolylineItem->setPen( aPen );
}