Files
qt5-legatus-legacy/Lts/Tools/Examples/Plugins/plugins/parent_alpha/parent_alpha.cpp
T
torstenandCopilot 3028302f7b Qt6 Migration: Merge latest Qt5 devel content and apply migration fixes
- 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>
2026-09-15 18:20:51 +00:00

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);
}
}
}