Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsWidgets/lts_notification_box.h
T
torstenandCopilot d890b11c5f 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>
2026-08-21 10:29:34 +02:00

51 lines
781 B
C++

#pragma once
#include "lts_widgets_export.h"
#include <QWidget>
#include <QPainterPath>
class QPaintEvent;
class QResizeEvent;
namespace Ui
{
class NotiBox;
}
namespace LtsWidgets
{
class LTSWIDGETS_EXPORT LtsNotificationBox : public QWidget
{
Q_OBJECT
public:
enum class MessageType
{
Success,
Error,
Warning,
Info,
};
explicit LtsNotificationBox(QWidget *parent = nullptr);
void message(const QString &title, const QString &text, MessageType type = MessageType::Error);
signals:
void signalClose();
void signalAck();
void signalLinkClicked(const QString &link);
protected:
void paintEvent(QPaintEvent *) override;
private:
Ui::NotiBox *m_ui;
QPainterPath roundRectPath;
const static int margin;
};
} // namespace LtsWidgets