Salome HOME
9adee7cce958cbdfe4c3edc6d3106772db9f9924
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetErrorLabel.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_WidgetErrorLabel.h
4 // Created:     03 Dec 2014
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ModuleBase_WidgetErrorLabel_H
8 #define ModuleBase_WidgetErrorLabel_H
9
10 #include "ModuleBase.h"
11 #include "ModuleBase_WidgetLabel.h"
12
13 class QLabel;
14
15 /**
16 * \ingroup GUI
17 * Implementation of model widget for a label with error message
18 */
19 class MODULEBASE_EXPORT ModuleBase_WidgetErrorLabel : public ModuleBase_WidgetLabel
20 {
21 Q_OBJECT
22  public:
23   /// Constructor
24   /// \param theParent the parent object
25   /// \param theData the widget configuation. The attribute of the model widget is obtained from
26   ModuleBase_WidgetErrorLabel(QWidget* theParent, const Config_WidgetAPI* theData);
27
28   virtual ~ModuleBase_WidgetErrorLabel();
29
30   virtual bool restoreValueCustom();
31
32   virtual bool focusTo();
33
34 protected:
35   bool eventFilter(QObject* theObj, QEvent* theEvent);
36
37 private:
38   QString myDefaultStyle;
39 };
40
41 #endif