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,16 +1,22 @@
/**
* @RDE_HEADER@
* Widget to create Text Editor
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include "lts_widgets_export.h"
#include <QGridLayout>
#include <QHBoxLayout>
#include <LtsWidgets/lts_widgets_export.h>
#include <QMainWindow>
#include <QMap>
#include <QObject>
#include <QPointer>
#include <QtPrintSupport/QPrintPreviewDialog>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QtPrintSupport/QPrinter>
#include <QtPrintSupport/QPrintPreviewDialog>
QT_BEGIN_NAMESPACE
class QAction;
@@ -27,110 +33,108 @@ namespace LtsWidgets
class LTSWIDGETS_EXPORT LtsTextEditor2 : public QMainWindow
{
Q_OBJECT
Q_OBJECT
public:
explicit LtsTextEditor2(QWidget* parent = nullptr);
~LtsTextEditor2();
public:
explicit LtsTextEditor2(QWidget *parent = nullptr);
~LtsTextEditor2();
static QString rsrcPath()
{
return (QStringLiteral(":/images/win"));
}
static QString rsrcPath(){return (QStringLiteral(":/images/win"));}
QColor m_backgroundColor{Qt::white};
QColor m_foregroundColor{Qt::black};
QColor m_backgroundColor{Qt::white};
QColor m_foregroundColor{Qt::black};
QTextEdit* textEdit();
QColor backgroundColor() const;
void enableBackgroundColor(bool onOff);
void setInitialBackgroundColor(const QColor& bgColor);
bool load(const QString& f);
QTextEdit *textEdit();
QColor backgroundColor() const;
void enableBackgroundColor(bool onOff);
void setInitialBackgroundColor(const QColor &bgColor);
bool load(const QString &f);
Q_SIGNALS:
void backgroundColorChanged(const QColor& bgColor);
public slots:
Q_SIGNALS:
void backgroundColorChanged(const QColor &bgColor);
private slots:
void onFileNew();
void onFileOpen();
bool onFileSave();
bool onFileSaveAs();
void onFilePrint();
void onFilePrintPreview();
void onFilePrintPdf();
public slots:
void onTextBold();
void onTextUnderline();
void onTextItalic();
void onTextFamily(const QString& f);
void onTextSize(const QString& p);
void onTextStyle(int styleIndex);
void onTextColor();
void onTextAlign(QAction* a);
void setChecked(bool checked);
void indent();
void unindent();
void slotBackgroundColorChanged(const QColor& bgColor);
void slotBackgroundColor();
private slots:
void onFileNew();
void onFileOpen();
bool onFileSave();
bool onFileSaveAs();
void onFilePrint();
void onFilePrintPreview();
void onFilePrintPdf();
void currentCharFormatChanged(const QTextCharFormat& format);
void cursorPositionChanged();
void onTextBold();
void onTextUnderline();
void onTextItalic();
void onTextFamily(const QString &f);
void onTextSize(const QString &p);
void onTextStyle(int styleIndex);
void onTextColor();
void onTextAlign(QAction *a);
void setChecked(bool checked);
void indent();
void unindent();
void slotBackgroundColorChanged(const QColor &bgColor);
void slotBackgroundColor();
void clipboardDataChanged();
void about();
void printPreview(QPrinter*);
void currentCharFormatChanged(const QTextCharFormat &format);
void cursorPositionChanged();
private:
void setupFileActions();
void setupEditActions();
void setupTextActions();
bool maybeSave();
void setCurrentFileName(const QString& fileName);
void modifyIndentation(int amount);
void clipboardDataChanged();
void about();
void printPreview(QPrinter *);
void mergeFormatOnWordOrSelection(const QTextCharFormat& format);
void fontChanged(const QFont& f);
void colorChanged(const QColor& c);
void alignmentChanged(Qt::Alignment a);
private:
void setupFileActions();
void setupEditActions();
void setupTextActions();
bool maybeSave();
void setCurrentFileName(const QString &fileName);
void modifyIndentation(int amount);
QAction* m_actionSave;
QAction* m_actionOpen;
QAction* m_actionQuit;
QAction* m_actionSaveAs;
QAction* m_actionNew;
QAction* m_actionPrint;
QAction* m_actionPreview;
QAction* m_actionExport;
QAction* m_actionTextBold;
QAction* m_actionTextUnderline;
QAction* m_actionTextItalic;
QAction* m_actionTextColor;
QAction* m_actionBackgroundColor;
QAction* m_actionAlignLeft;
QAction* m_actionAlignCenter;
QAction* m_actionAlignRight;
QAction* m_actionAlignJustify;
QAction* m_actionIndentLess;
QAction* m_actionIndentMore;
QAction* m_actionToggleCheckState;
QAction* m_actionUndo;
QAction* m_actionRedo;
void mergeFormatOnWordOrSelection(const QTextCharFormat &format);
void fontChanged(const QFont &f);
void colorChanged(const QColor &c);
void alignmentChanged(Qt::Alignment a);
QAction *m_actionSave;
QAction *m_actionOpen;
QAction *m_actionQuit;
QAction *m_actionSaveAs;
QAction *m_actionNew;
QAction *m_actionPrint;
QAction *m_actionPreview;
QAction *m_actionExport;
QAction *m_actionTextBold;
QAction *m_actionTextUnderline;
QAction *m_actionTextItalic;
QAction *m_actionTextColor;
QAction *m_actionBackgroundColor;
QAction *m_actionAlignLeft;
QAction *m_actionAlignCenter;
QAction *m_actionAlignRight;
QAction *m_actionAlignJustify;
QAction *m_actionIndentLess;
QAction *m_actionIndentMore;
QAction *m_actionToggleCheckState;
QAction *m_actionUndo;
QAction *m_actionRedo;
#ifndef QT_NO_CLIPBOARD
QAction* m_actionCut;
QAction* m_actionCopy;
QAction* m_actionPaste;
QAction *m_actionCut;
QAction *m_actionCopy;
QAction *m_actionPaste;
#endif
QComboBox* m_comboStyle;
QAction* m_comboStyleAction;
QFontComboBox* m_comboFont;
QComboBox* m_comboSize;
QComboBox *m_comboStyle;
QAction *m_comboStyleAction;
QFontComboBox *m_comboFont;
QComboBox *m_comboSize;
QToolBar* m_tb;
QString m_fileName;
QTextEdit* m_textEdit;
QToolBar *m_tb;
QString m_fileName;
QTextEdit *m_textEdit;
};
} // namespace LtsWidgets
} // namespace LtsWidgets