X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FLightApp%2FLightApp_DataSubOwner.cxx;h=9f24e67b23c2667a479406a7fe474aa0fdbfe7d8;hb=8d973f87a441c75acab8b1cf0d3f54434735008e;hp=aaf1d3613ab45707fb33cf6ce8e211b0bf98e565;hpb=399155730966dfc225fbb24f66204b05664385f2;p=modules%2Fgui.git diff --git a/src/LightApp/LightApp_DataSubOwner.cxx b/src/LightApp/LightApp_DataSubOwner.cxx index aaf1d3613..9f24e67b2 100644 --- a/src/LightApp/LightApp_DataSubOwner.cxx +++ b/src/LightApp/LightApp_DataSubOwner.cxx @@ -1,28 +1,26 @@ -// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D -// +// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either +// License as published by the Free Software Foundation; either // version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -#include "LightApp_DataSubOwner.h" -#include "LightApp_DataObject.h" - -#ifdef WNT -#include -#endif +#include "LightApp_DataSubOwner.h" /*!Constructor.Initialize by \a entry and \a index*/ LightApp_DataSubOwner::LightApp_DataSubOwner( const QString& entry, const int index ) @@ -36,14 +34,12 @@ LightApp_DataSubOwner::~LightApp_DataSubOwner() { } -/*!Checks: Is current data sub owner equal \a obj.*/ -bool LightApp_DataSubOwner::isEqual( const SUIT_DataOwner& obj ) const -{ - if (LightApp_DataOwner::isEqual(obj)) { - const LightApp_DataSubOwner* other = dynamic_cast( &obj ); - return other && index() == other->index(); - } - return false; +/*!Gets key string, used for data owners comparison.*/ +QString LightApp_DataSubOwner::keyString() const +{ + QString aKey = LightApp_DataOwner::keyString(); + aKey += QString("_%1").arg(index()); + return aKey; } /*!Gets index.*/