- #include <QObject> zu 106+ Header-Dateien hinzugefügt (Qt6 benötigt explizites Include) - ui_requirement.h/cpp zu requirement_widget.h/cpp umbenannt (vermeidet AutoUIC-Scan) - CMakeLists.txt aktualisiert - Qt6Positioning-Dependency in Dockerfile hinzugefügt Fixes: - AutoUIC-Fehler bei AesBaseGui (requirement.ui nicht gefunden) - QObject-Missing-Include-Fehler in Qt6 - Qt6Location-Modul nicht gefunden (qtpositioning fehlte)
57 lines
1.1 KiB
C++
Executable File
57 lines
1.1 KiB
C++
Executable File
|
|
|
|
#pragma once
|
|
#include <QObject>
|
|
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <LtsWidgets/lts_text_editor.h>
|
|
#include <LtsWidgets/lts_text_editor2.h>
|
|
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LTSWIDGETS_EXPORT LtsTextEditDialog : public LtsWidgets::LtsDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
using BaseClass = LtsWidgets::LtsDialog;
|
|
|
|
public:
|
|
LtsTextEditDialog(QWidget *parent = nullptr);
|
|
~LtsTextEditDialog();
|
|
|
|
void enableBackgroundColor(bool onOff);
|
|
void setInitialBackgroundColor(const QColor &bgColor);
|
|
|
|
void retranslate() override;
|
|
bool apply() override;
|
|
void setHtml(const QString &htmlText);
|
|
QString getHtmlText() const;
|
|
|
|
protected:
|
|
void dialogCanceled() override;
|
|
|
|
private:
|
|
LtsTextEditor *m_textEditor{nullptr};
|
|
LtsTextEditor2 *m_textEditor2{nullptr};
|
|
|
|
|
|
protected Q_SLOTS:
|
|
void onBackgroundColorChanged(const QColor &backgroundColor);
|
|
|
|
Q_SIGNALS:
|
|
void signalTextChanged(const QString &htmlText);
|
|
void signalTextApplied(const QString &htmlText);
|
|
void signalTextAppliedWithBackGroundColor(const QString &htmlText);
|
|
void signalBackgroundColorChanged(const QColor &bgColor);
|
|
void signalDialogApplied();
|
|
void signalDialogCanceled();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|