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:
848 files changed
+89305
-100020
No files matched your search
Executable → Regular
+26
-37
@@ -1,59 +1,48 @@
|
||||
#include "window.h"
|
||||
|
||||
#include <LtsWidgets/lts_notification_box.h>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QHBoxLayout>
|
||||
|
||||
|
||||
namespace LtsWidgets
|
||||
{
|
||||
Window::Window(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
Window::Window(QWidget* parent) : QWidget(parent)
|
||||
{
|
||||
|
||||
|
||||
setGeometry(x(), y(), 300, 300);
|
||||
setGeometry(x(), y(), 300, 300);
|
||||
|
||||
QHBoxLayout *lay = new QHBoxLayout;
|
||||
QHBoxLayout* lay = new QHBoxLayout;
|
||||
|
||||
lay->setMargin(0);
|
||||
|
||||
lay->setMargin(0);
|
||||
|
||||
auto x1 = new LtsWidgets::LtsNotificationBox;
|
||||
lay->addWidget(x1);
|
||||
|
||||
auto x1 = new LtsWidgets::LtsNotificationBox;
|
||||
lay->addWidget(x1);
|
||||
if (qApp->arguments().count() < 2)
|
||||
abort();
|
||||
|
||||
LtsNotificationBox::MessageType type;
|
||||
|
||||
if (qApp->arguments().count() < 2)
|
||||
abort();
|
||||
if (qApp->arguments().at(1) == QStringLiteral("e"))
|
||||
type = LtsNotificationBox::MessageType::Error;
|
||||
else if (qApp->arguments().at(1) == QStringLiteral("w"))
|
||||
type = LtsNotificationBox::MessageType::Warning;
|
||||
else if (qApp->arguments().at(1) == QStringLiteral("i"))
|
||||
type = LtsNotificationBox::MessageType::Info;
|
||||
else if (qApp->arguments().at(1) == QStringLiteral("s"))
|
||||
type = LtsNotificationBox::MessageType::Success;
|
||||
else
|
||||
abort();
|
||||
|
||||
x1->message(QStringLiteral("Title Message"),
|
||||
QStringLiteral("A text that consists of a lot of characters and also even has<br />two lines."), type);
|
||||
connect(x1, &LtsNotificationBox::signalClose, this, &QWidget::close);
|
||||
|
||||
LtsNotificationBox::MessageType type;
|
||||
setLayout(lay);
|
||||
|
||||
if (qApp->arguments().at(1) == QStringLiteral("e"))
|
||||
type = LtsNotificationBox::MessageType::Error;
|
||||
else if (qApp->arguments().at(1) == QStringLiteral("w"))
|
||||
type = LtsNotificationBox::MessageType::Warning;
|
||||
else if (qApp->arguments().at(1) == QStringLiteral("i"))
|
||||
type = LtsNotificationBox::MessageType::Info;
|
||||
else if (qApp->arguments().at(1) == QStringLiteral("s"))
|
||||
type = LtsNotificationBox::MessageType::Success;
|
||||
else
|
||||
abort();
|
||||
|
||||
x1->message(QStringLiteral("Title Message"), QStringLiteral("A text that consists of a lot of characters and also even has<br />two lines."), type);
|
||||
connect(x1, &LtsNotificationBox::signalClose, this, &QWidget::close);
|
||||
|
||||
setLayout(lay);
|
||||
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
}
|
||||
|
||||
Window::~Window() {}
|
||||
|
||||
Window::~Window()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace LtsWidgets
|
||||
Reference in new issue
Block a user