X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IPropertyPanel.cpp;h=cd8b25c401d5ac5bf1537b5e3b4aed2fe1632f59;hb=f14192492e36f4febc93b2ad7ab7f866cbbdf71b;hp=7abdbe2304efe470a43e6c25db4d695300cb0f86;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IPropertyPanel.cpp b/src/ModuleBase/ModuleBase_IPropertyPanel.cpp index 7abdbe230..cd8b25c40 100644 --- a/src/ModuleBase/ModuleBase_IPropertyPanel.cpp +++ b/src/ModuleBase/ModuleBase_IPropertyPanel.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,18 +12,11 @@ // // 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 +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -/* - * ModuleBase_IPropertyPanel.cpp - * - * Created on: Oct 01, 2014 - * Author: vsv - */ - #include "ModuleBase_IPropertyPanel.h" #include "ModuleBase_ModelWidget.h" #include "ModuleBase_ToolBox.h" @@ -85,3 +78,14 @@ ModuleBase_ModelWidget* ModuleBase_IPropertyPanel::findFirstAcceptingValueWidget } return aFirstWidget; } + +bool ModuleBase_IPropertyPanel::isModified() const +{ + bool isModified = false; + QList aWidgets = modelWidgets(); + foreach(ModuleBase_ModelWidget* aWgt, aWidgets) { + bool aRes = aWgt->isModified(); + isModified |= aRes; + } + return isModified; +}