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

+28 -46
View File
@@ -1,70 +1,52 @@
#include "lts_screen_base.h"
#include "lts_dummy_widget.h"
#include <LtsWidgets/lts_base_layout_widget.h>
#include <LtsUtilsCore/promise.h>
#include <QDebug>
#include <QSplitter>
#include <QHBoxLayout>
#include <LtsWidgets/lts_base_layout_widget.h>
#include <QCloseEvent>
#include <QDebug>
#include <QHBoxLayout>
#include <QSplitter>
#ifdef Q_OS_WIN
#include <QtPlatformHeaders/qwindowswindowfunctions.h>
#endif
class NoCloseWidget : public QWidget
{
void closeEvent(QCloseEvent *event) override
{
event->ignore();
}
void closeEvent(QCloseEvent* event) override
{
event->ignore();
}
};
namespace LtsMultiMonitor
{
LtsScreenBase::LtsScreenBase(QRect screenGeo, int screenId, bool debugMargins, const QString &serial)
: m_screenDialog(new NoCloseWidget())
, m_screenId(screenId)
, m_serial(serial)
, m_screenRect(screenGeo)
LtsScreenBase::LtsScreenBase(QRect screenGeo, int screenId, bool debugMargins, const QString& serial)
: m_screenDialog(new NoCloseWidget()), m_screenId(screenId), m_serial(serial), m_screenRect(screenGeo)
{
connect(this, &LtsScreenBase::destroyed,
m_screenDialog, &QWidget::deleteLater);
connect(this, &LtsScreenBase::destroyed, m_screenDialog, &QWidget::deleteLater);
if (debugMargins)
{
qWarning() << "LtsScreenBase: screen rect adjusted for dev machines!";
m_screenRect.adjust(+50, +50, -100, -100);
}
if (debugMargins)
{
qWarning() << "LtsScreenBase: screen rect adjusted for dev machines!";
m_screenRect.adjust(+50, +50, -100, -100);
}
m_screenDialog->setWindowFlags(Qt::FramelessWindowHint);
m_screenDialog->setGeometry(m_screenRect);
m_screenDialog->setMinimumSize(m_screenRect.width(), m_screenRect.height());
m_screenDialog->setMaximumSize(m_screenRect.width(), m_screenRect.height());
m_screenDialog->setContentsMargins(0, 0, 0, 0);
m_screenDialog->setWindowFlag(Qt::WindowType::WindowStaysOnBottomHint);
m_screenDialog->setWindowFlags(Qt::FramelessWindowHint);
m_screenDialog->setGeometry(m_screenRect);
m_screenDialog->setMinimumSize(m_screenRect.width(), m_screenRect.height());
m_screenDialog->setMaximumSize(m_screenRect.width(), m_screenRect.height());
m_screenDialog->setContentsMargins(0, 0, 0, 0);
m_screenDialog->setWindowFlag(Qt::WindowType::WindowStaysOnBottomHint);
#ifdef Q_OS_WIN
m_screenDialog->winId();
QWindowsWindowFunctions::setHasBorderInFullScreen(m_screenDialog->windowHandle(), true);
m_screenDialog->winId();
QWindowsWindowFunctions::setHasBorderInFullScreen(m_screenDialog->windowHandle(), true);
#endif
m_screenDialog->activateWindow();
m_screenDialog->show();
m_screenDialog->activateWindow();
m_screenDialog->show();
}
}
} // namespace LtsMultiMonitor