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:
145 files changed
+17700
-14377
No files matched your search
@@ -1,49 +1,61 @@
|
||||
|
||||
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* LtsTextEditDialog
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Norbert Thoden, SLSE, 2023-06-14
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <LtsWidgets/lts_text_editor.h>
|
||||
#include <LtsWidgets/lts_text_editor2.h>
|
||||
#include <QObject>
|
||||
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
|
||||
class LTSWIDGETS_EXPORT LtsTextEditDialog : public LtsWidgets::LtsDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
using BaseClass = LtsWidgets::LtsDialog;
|
||||
using BaseClass = LtsWidgets::LtsDialog;
|
||||
|
||||
public:
|
||||
LtsTextEditDialog(QWidget* parent = nullptr);
|
||||
~LtsTextEditDialog();
|
||||
public:
|
||||
LtsTextEditDialog(QWidget *parent = nullptr);
|
||||
~LtsTextEditDialog();
|
||||
|
||||
void enableBackgroundColor(bool onOff);
|
||||
void setInitialBackgroundColor(const QColor& bgColor);
|
||||
void enableBackgroundColor(bool onOff);
|
||||
void setInitialBackgroundColor(const QColor &bgColor);
|
||||
|
||||
void retranslate() override;
|
||||
bool apply() override;
|
||||
void setHtml(const QString& htmlText);
|
||||
QString getHtmlText() const;
|
||||
void retranslate() override;
|
||||
bool apply() override;
|
||||
void setHtml(const QString &htmlText);
|
||||
QString getHtmlText() const;
|
||||
|
||||
protected:
|
||||
void dialogCanceled() override;
|
||||
protected:
|
||||
void dialogCanceled() override;
|
||||
|
||||
private:
|
||||
LtsTextEditor* m_textEditor{nullptr};
|
||||
LtsTextEditor2* m_textEditor2{nullptr};
|
||||
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();
|
||||
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();
|
||||
|
||||
};
|
||||
|
||||
} // namespace LtsWidgets
|
||||
} // namespace FileManagement
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user