1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * ModuleBase_IPropertyPanel.cpp
6 * Created on: Oct 01, 2014
10 #include "ModuleBase_IPropertyPanel.h"
11 #include "ModuleBase_ModelWidget.h"
13 ModuleBase_IPropertyPanel::ModuleBase_IPropertyPanel(QWidget* theParent) : QDockWidget(theParent), myIsEditing(false)
18 ModuleBase_ModelWidget* ModuleBase_IPropertyPanel::findFirstAcceptingValueWidget()
20 return ModuleBase_IPropertyPanel::findFirstAcceptingValueWidget(modelWidgets());
23 ModuleBase_ModelWidget* ModuleBase_IPropertyPanel::findFirstAcceptingValueWidget(
24 const QList<ModuleBase_ModelWidget*>& theWidgets)
26 ModuleBase_ModelWidget* aFirstWidget = 0;
28 ModuleBase_ModelWidget* aWgt;
29 QList<ModuleBase_ModelWidget*>::const_iterator aWIt;
30 for (aWIt = theWidgets.begin(); aWIt != theWidgets.end() && !aFirstWidget; ++aWIt) {
32 if (aWgt->canSetValue())