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>
This commit is contained in:
310 files changed
+2823
-740
No files matched your search
@@ -0,0 +1,36 @@
|
||||
#include "child_beta.h"
|
||||
#include <QVBoxLayout>
|
||||
|
||||
namespace DLBO
|
||||
{
|
||||
ChildBeta::ChildBeta()
|
||||
{
|
||||
m_widget = new QWidget();
|
||||
QVBoxLayout *layout = new QVBoxLayout(m_widget);
|
||||
m_widget->setStyleSheet(QStringLiteral("border: 1px solid green; background-color: #f0fff0; margin: 5px;"));
|
||||
|
||||
QLabel *title = new QLabel(QStringLiteral("Kind-Widget 1"));
|
||||
title->setStyleSheet(QStringLiteral("font-weight: bold; color: green;"));
|
||||
|
||||
m_staticLabel = new QLabel(QStringLiteral("Warte auf Init-Daten..."));
|
||||
m_liveLabel = new QLabel(QStringLiteral("Warte auf Live-Text..."));
|
||||
|
||||
layout->addWidget(title);
|
||||
layout->addWidget(m_staticLabel);
|
||||
layout->addWidget(m_liveLabel);
|
||||
}
|
||||
|
||||
void ChildBeta::setParentData(const QString &data)
|
||||
{
|
||||
if (m_staticLabel)
|
||||
m_staticLabel->setText(QStringLiteral("Init-Wert: %1").arg(data));
|
||||
}
|
||||
|
||||
void ChildBeta::updateLiveData(const QString &text)
|
||||
{
|
||||
if (m_liveLabel)
|
||||
{
|
||||
m_liveLabel->setText(text.isEmpty() ? QStringLiteral("Warte auf Live-Text...") : QStringLiteral("Beta Live: ") + text);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user