X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetNameEdit.h;h=a3d0ac6824f5c6cd46fbf7e9aa461034a604139a;hb=aba714fbb23139b15272ed816c9a30595165106c;hp=ba090c4ab61656df61c7e30293f6127980a75a0c;hpb=dc7d4d86b58b81684abc9b5a2be8ec30f210c2da;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetNameEdit.h b/src/ModuleBase/ModuleBase_WidgetNameEdit.h index ba090c4ab..a3d0ac682 100644 --- a/src/ModuleBase/ModuleBase_WidgetNameEdit.h +++ b/src/ModuleBase/ModuleBase_WidgetNameEdit.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 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,10 +12,9 @@ // // 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 // #ifndef MODULEBASE_WIDGETNAMEEDIT_H_ @@ -28,15 +27,17 @@ class ModuleBase_WidgetNameEdit : public ModuleBase_WidgetLineEdit { Q_OBJECT public: - ModuleBase_WidgetNameEdit( QWidget* theParent, - const Config_WidgetAPI* theData, - const std::string& thePlaceHolder ) - : ModuleBase_WidgetLineEdit(theParent, theData, thePlaceHolder) {} + ModuleBase_WidgetNameEdit(QWidget* theParent, + const Config_WidgetAPI* theData, + const std::string& thePlaceHolder) + : ModuleBase_WidgetLineEdit(theParent, theData, thePlaceHolder) {} /// Returns True if the widget uses feature attribute. /// If not then it means that the widget do not need attribute at all. virtual bool usesAttribute() const { return false; } + virtual bool focusTo() { return false; } + protected: /// Saves the internal parameters to the given feature /// \return True in success