1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_WidgetLabel.cpp
4 // Created: 03 Dec 2014
5 // Author: Vitaly SMETANNIKOV
7 #include "ModuleBase_WidgetLabel.h"
9 #include <Config_WidgetAPI.h>
14 ModuleBase_WidgetLabel::ModuleBase_WidgetLabel(QWidget* theParent,
15 const Config_WidgetAPI* theData,
16 const std::string& theParentId)
17 : ModuleBase_ModelWidget(theParent, theData, theParentId)
19 QString aText = QString::fromStdString(theData->getProperty("title"));
20 myLabel = new QLabel(aText, theParent);
21 myLabel->setWordWrap(true);
22 myLabel->setIndent(5);
25 ModuleBase_WidgetLabel::~ModuleBase_WidgetLabel()
29 QList<QWidget*> ModuleBase_WidgetLabel::getControls() const
31 return QList<QWidget*>();
34 QWidget* ModuleBase_WidgetLabel::getControl() const