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
+30
-39
@@ -1,10 +1,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ltsutilssettings_export.h"
|
||||
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
#include <QMap>
|
||||
#include "ltsutilssettings_export.h"
|
||||
|
||||
class QJsonObject;
|
||||
|
||||
@@ -13,61 +14,51 @@ namespace LtsUtils
|
||||
|
||||
class LTSUTILSSETTINGS_EXPORT Settings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
~Settings() = default;
|
||||
public:
|
||||
~Settings() = default;
|
||||
|
||||
|
||||
void setValue(const QString& group, const QString& identifier, const QVariant& value);
|
||||
|
||||
void setValue(const QString &group, const QString &identifier, const QVariant &value);
|
||||
void removeValue(const QString& group, const QString& identifier);
|
||||
|
||||
|
||||
QVariant value(const QString& group, const QString& identifier, const QVariant& defaultValue = QVariant()) const;
|
||||
|
||||
void removeValue(const QString &group, const QString &identifier);
|
||||
QStringList identifiers(const QString& group) const;
|
||||
|
||||
|
||||
void init(const QByteArray& settings);
|
||||
QByteArray exportSettings() const;
|
||||
void clear();
|
||||
|
||||
QVariant value(const QString &group, const QString &identifier, const QVariant &defaultValue = QVariant()) const;
|
||||
void dump();
|
||||
|
||||
|
||||
protected:
|
||||
Settings() = default;
|
||||
|
||||
QStringList identifiers(const QString &group) const;
|
||||
|
||||
void init(const QByteArray &settings);
|
||||
QByteArray exportSettings() const;
|
||||
void clear();
|
||||
|
||||
void dump();
|
||||
|
||||
protected:
|
||||
Settings() = default;
|
||||
|
||||
signals:
|
||||
void valueChanged(const QString &group, const QString &identifier, const QVariant &value);
|
||||
void valueRemoved(const QString &group, const QString &identifier);
|
||||
|
||||
protected:
|
||||
QHash<QString, QVariant> m_data;
|
||||
signals:
|
||||
void valueChanged(const QString& group, const QString& identifier, const QVariant& value);
|
||||
void valueRemoved(const QString& group, const QString& identifier);
|
||||
|
||||
protected:
|
||||
QHash<QString, QVariant> m_data;
|
||||
};
|
||||
|
||||
class LTSUTILSSETTINGS_EXPORT OperatorSettings : public Settings
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static OperatorSettings *getInstance();
|
||||
Q_OBJECT
|
||||
public:
|
||||
static OperatorSettings* getInstance();
|
||||
};
|
||||
|
||||
class LTSUTILSSETTINGS_EXPORT ProjectSettings : public Settings
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static ProjectSettings *getInstance();
|
||||
Q_OBJECT
|
||||
public:
|
||||
static ProjectSettings* getInstance();
|
||||
|
||||
static bool initFromFile(const QString &filename);
|
||||
static bool isFunctionEnabled(const QString &group, const QString &function);
|
||||
static bool initFromFile(const QString& filename);
|
||||
static bool isFunctionEnabled(const QString& group, const QString& function);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
} // namespace LtsUtils
|
||||
Reference in new issue
Block a user