- Merged 292 changed files from dlbo snapshot - Fixed IDL enum collisions (PortType, PdmEventType) - Fixed Grantlee template for C++11 scoped enums - Fixed CMake VERSION_GREATER syntax - Added missing directories (THP, LtsRestClient, etc.) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
859 B
C++
32 lines
859 B
C++
#include "parent_alpha.h"
|
|
#include <QLabel>
|
|
|
|
namespace DLBO
|
|
{
|
|
ParentAlpha::ParentAlpha()
|
|
{
|
|
m_widget = new QWidget();
|
|
m_layout = new QVBoxLayout(m_widget);
|
|
m_widget->setStyleSheet(QStringLiteral("border: 2px solid blue; padding: 10px; margin: 5px;"));
|
|
|
|
QLabel *label = new QLabel(QStringLiteral("Eltern-Widget (AlphaParent)\nBsp.: Tln-Info-Fenster"));
|
|
label->setStyleSheet(QStringLiteral("font-weight: bold; color: blue; font-size: 14px;"));
|
|
m_layout->addWidget(label);
|
|
|
|
m_inputField = new QLineEdit();
|
|
m_inputField->setPlaceholderText(QStringLiteral("Live-Eingabe für alle Kinder..."));
|
|
m_layout->addWidget(m_inputField);
|
|
|
|
connect(m_inputField, &QLineEdit::textChanged, this, &ParentAlpha::dataChangedLive);
|
|
}
|
|
|
|
void ParentAlpha::addChildWidget(QWidget *childWidget)
|
|
{
|
|
if (childWidget)
|
|
{
|
|
m_layout->addWidget(childWidget);
|
|
}
|
|
}
|
|
|
|
}
|