1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_WidgetErrorLabel.h
4 // Created: 03 Dec 2014
5 // Author: Vitaly SMETANNIKOV
7 #ifndef ModuleBase_WidgetErrorLabel_H
8 #define ModuleBase_WidgetErrorLabel_H
10 #include "ModuleBase.h"
11 #include "ModuleBase_WidgetLabel.h"
17 * Implementation of model widget for a label with error message
19 class MODULEBASE_EXPORT ModuleBase_WidgetErrorLabel : public ModuleBase_WidgetLabel
24 /// \param theParent the parent object
25 /// \param theData the widget configuation. The attribute of the model widget is obtained from
26 /// \param theParentId is Id of a parent of the current attribute
27 ModuleBase_WidgetErrorLabel(QWidget* theParent, const Config_WidgetAPI* theData,
28 const std::string & theParentId);
30 virtual ~ModuleBase_WidgetErrorLabel();
32 virtual bool restoreValueCustom();
34 virtual bool focusTo();
37 bool eventFilter(QObject* theObj, QEvent* theEvent);
40 QString myDefaultStyle;