Qt6 Migration: LtsWidgets, BUILD_RTI Guards, externe Dependencies dokumentiert

- LtsWidgets Verzeichnis vollständig migriert (Qt5→Qt6)
- BUILD_RTI Guards für RTI-spezifische Module hinzugefügt
- Externe Dependencies in EXTERNAL_DEPS.md dokumentiert
- Qt6 API-Änderungen: QRegExp→QRegularExpression, enterEvent(QEnterEvent*)
- AutoUic-Fehler bei ui_requirement behoben (SKIP_AUTOUIC)
- Include-Pfade korrigiert (LtsElevation, LtsMultiMonitor, LtsUtilsCore)
- MOC-Fehler behoben (Q_INTERFACES entfernt wo nicht benötigt)
- CMakeLists.txt Anpassungen für Qt6 (PUBLIC statt INTERFACE)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-21 10:29:34 +02:00
1 parent 27fe03a03a
commit d890b11c5f
145 files changed
+17700 -14377

No files matched your search

@@ -1,48 +1,59 @@
#include "window.h"
#include <LtsWidgets/lts_notification_box.h>
#include <QApplication>
#include <QHBoxLayout>
namespace LtsWidgets
{
Window::Window(QWidget* parent) : QWidget(parent)
Window::Window(QWidget *parent)
: QWidget(parent)
{
//Q_INIT_RESOURCE(lts_resources);
setGeometry(x(), y(), 300, 300);
setGeometry(x(), y(), 300, 300);
QHBoxLayout* lay = new QHBoxLayout;
QHBoxLayout *lay = new QHBoxLayout;
lay->setMargin(0);
lay->setMargin(0);
//lay->setSizeConstraint(QLayout::SetMinimumSize);
auto x1 = new LtsWidgets::LtsNotificationBox;
lay->addWidget(x1);
if (qApp->arguments().count() < 2)
abort();
auto x1 = new LtsWidgets::LtsNotificationBox;
lay->addWidget(x1);
LtsNotificationBox::MessageType type;
if (qApp->arguments().at(1) == QStringLiteral("e"))
type = LtsNotificationBox::MessageType::Error;
else if (qApp->arguments().at(1) == QStringLiteral("w"))
type = LtsNotificationBox::MessageType::Warning;
else if (qApp->arguments().at(1) == QStringLiteral("i"))
type = LtsNotificationBox::MessageType::Info;
else if (qApp->arguments().at(1) == QStringLiteral("s"))
type = LtsNotificationBox::MessageType::Success;
else
abort();
if (qApp->arguments().count() < 2)
abort();
x1->message(QStringLiteral("Title Message"),
QStringLiteral("A text that consists of a lot of characters and also even has<br />two lines."), type);
connect(x1, &LtsNotificationBox::signalClose, this, &QWidget::close);
setLayout(lay);
LtsNotificationBox::MessageType type;
setAttribute(Qt::WA_TranslucentBackground);
if (qApp->arguments().at(1) == QStringLiteral("e"))
type = LtsNotificationBox::MessageType::Error;
else if (qApp->arguments().at(1) == QStringLiteral("w"))
type = LtsNotificationBox::MessageType::Warning;
else if (qApp->arguments().at(1) == QStringLiteral("i"))
type = LtsNotificationBox::MessageType::Info;
else if (qApp->arguments().at(1) == QStringLiteral("s"))
type = LtsNotificationBox::MessageType::Success;
else
abort();
x1->message(QStringLiteral("Title Message"), QStringLiteral("A text that consists of a lot of characters and also even has<br />two lines."), type);
connect(x1, &LtsNotificationBox::signalClose, this, &QWidget::close);
setLayout(lay);
setAttribute(Qt::WA_TranslucentBackground);
}
Window::~Window() {}
Window::~Window()
{
//Q_CLEANUP_RESOURCE(lts_resources);
}
} // namespace LtsWidgets