chore: 格式化ElaWidgetTools代码

This commit is contained in:
sleepwithoutbz
2025-09-20 01:39:00 +08:00
parent d2fded145d
commit 4ab391f8a1
394 changed files with 10913 additions and 15860 deletions

View File

@@ -8,8 +8,7 @@
#include "ElaProperty.h"
#include "ElaSingleton.h"
class ElaEventPrivate;
class ELA_EXPORT ElaEvent : public QObject
{
class ELA_EXPORT ElaEvent : public QObject {
Q_OBJECT
Q_Q_CREATE(ElaEvent)
Q_PROPERTY_CREATE_Q_H(QString, EventName);
@@ -17,26 +16,25 @@ class ELA_EXPORT ElaEvent : public QObject
Q_PROPERTY_CREATE_Q_H(Qt::ConnectionType, ConnectionType);
public:
explicit ElaEvent(QObject* parent = nullptr);
explicit ElaEvent(QString eventName, QString functionName, QObject* parent = nullptr);
explicit ElaEvent(QObject *parent = nullptr);
explicit ElaEvent(QString eventName, QString functionName, QObject *parent = nullptr);
~ElaEvent() override;
ElaEventBusType::EventBusReturnType registerAndInit();
};
class ElaEventBusPrivate;
class ELA_EXPORT ElaEventBus : public QObject
{
class ELA_EXPORT ElaEventBus : public QObject {
Q_OBJECT
Q_Q_CREATE(ElaEventBus)
Q_SINGLETON_CREATE_H(ElaEventBus);
private:
explicit ElaEventBus(QObject* parent = nullptr);
explicit ElaEventBus(QObject *parent = nullptr);
~ElaEventBus() override;
public:
ElaEventBusType::EventBusReturnType post(const QString& eventName, const QVariantMap& data = {});
QStringList getRegisteredEventsName() const;
ElaEventBusType::EventBusReturnType post(const QString &eventName, const QVariantMap &data = {});
QStringList getRegisteredEventsName() const;
private:
friend class ElaEvent;