-QRect makeRect( const int x1, const int y1, const int x2, const int y2 )
-{
- return QRect( qMin( x1, x2 ), qMin( y1, y2 ), qAbs( x2 - x1 ), qAbs( y2 - y1 ) );
+std::string featureInfo(FeaturePtr theFeature)
+{
+ std::ostringstream aStream;
+ if (theFeature)
+ aStream << theFeature.get() << " " << theFeature->getKind();
+ return QString(aStream.str().c_str()).toStdString();
+}
+
+//******************************************************************
+/*FeaturePtr realFeature(const FeaturePtr theFeature)
+ {
+ if (theFeature->data()) {
+ return theFeature;
+ } else {
+ ObjectPtr aObject = std::dynamic_pointer_cast<ModelAPI_Object>(theFeature);
+ return aObject->featureRef();
+ }
+ }*/
+