Apply clang-format to Lts/Common and DTC/enum headers

- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-19 14:46:29 +02:00
1 parent 1881d68aef
commit d6b6ffce7c
848 files changed
+89305 -100020

No files matched your search

+92 -92
View File
@@ -1,18 +1,16 @@
#pragma once
#include <QObject>
#include "ltswidgets_export.h"
#include <QGridLayout>
#include <QHBoxLayout>
#include <QMainWindow>
#include <QMap>
#include <QObject>
#include <QPointer>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QtPrintSupport/QPrinter>
#include <QtPrintSupport/QPrintPreviewDialog>
#include <QtPrintSupport/QPrinter>
QT_BEGIN_NAMESPACE
class QAction;
@@ -29,108 +27,110 @@ 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);
Q_SIGNALS:
void backgroundColorChanged(const QColor &bgColor);
public slots:
public slots:
private slots:
void onFileNew();
void onFileOpen();
bool onFileSave();
bool onFileSaveAs();
void onFilePrint();
void onFilePrintPreview();
void onFilePrintPdf();
private slots:
void onFileNew();
void onFileOpen();
bool onFileSave();
bool onFileSaveAs();
void onFilePrint();
void onFilePrintPreview();
void onFilePrintPdf();
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 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 currentCharFormatChanged(const QTextCharFormat& format);
void cursorPositionChanged();
void currentCharFormatChanged(const QTextCharFormat &format);
void cursorPositionChanged();
void clipboardDataChanged();
void about();
void printPreview(QPrinter*);
void clipboardDataChanged();
void about();
void printPreview(QPrinter *);
private:
void setupFileActions();
void setupEditActions();
void setupTextActions();
bool maybeSave();
void setCurrentFileName(const QString& fileName);
void modifyIndentation(int amount);
private:
void setupFileActions();
void setupEditActions();
void setupTextActions();
bool maybeSave();
void setCurrentFileName(const QString &fileName);
void modifyIndentation(int amount);
void mergeFormatOnWordOrSelection(const QTextCharFormat& format);
void fontChanged(const QFont& f);
void colorChanged(const QColor& c);
void alignmentChanged(Qt::Alignment a);
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;
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