]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/ModuleBase_WidgetLabel.cpp
Salome HOME
Speed up the redraw of sketch with constraints moved by the point of the line
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetLabel.cpp
1 // File:        ModuleBase_WidgetLabel.cpp
2 // Created:     03 Dec 2014
3 // Author:      Vitaly SMETANNIKOV
4
5 #include "ModuleBase_WidgetLabel.h"
6
7 #include <Config_WidgetAPI.h>
8
9 #include <QLabel>
10
11
12 ModuleBase_WidgetLabel::ModuleBase_WidgetLabel(QWidget* theParent,
13                                                      const Config_WidgetAPI* theData,
14                                                      const std::string& theParentId)
15     : ModuleBase_ModelWidget(theParent, theData, theParentId)
16 {
17   QString aText = QString::fromStdString(theData->getProperty("title"));
18   myLabel = new QLabel(aText, theParent);
19   myLabel->setWordWrap(true);
20   myLabel->setIndent(5);
21 }
22
23 ModuleBase_WidgetLabel::~ModuleBase_WidgetLabel()
24 {
25 }
26
27 QList<QWidget*> ModuleBase_WidgetLabel::getControls() const
28 {
29   return QList<QWidget*>();
30 }
31
32 QWidget* ModuleBase_WidgetLabel::getControl() const
33 {
34   return myLabel;
35 }