chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
#include "ElaDef.h"
|
||||
#include "ElaProperty.h"
|
||||
class ElaEvent;
|
||||
class ElaEventPrivate : public QObject
|
||||
{
|
||||
class ElaEventPrivate : public QObject {
|
||||
Q_OBJECT
|
||||
Q_D_CREATE(ElaEvent)
|
||||
Q_PROPERTY_CREATE_D(QString, EventName);
|
||||
@@ -16,23 +15,22 @@ class ElaEventPrivate : public QObject
|
||||
Q_PROPERTY_CREATE_D(Qt::ConnectionType, ConnectionType);
|
||||
|
||||
public:
|
||||
explicit ElaEventPrivate(QObject* parent = nullptr);
|
||||
explicit ElaEventPrivate(QObject *parent = nullptr);
|
||||
~ElaEventPrivate();
|
||||
};
|
||||
|
||||
class ElaEventBus;
|
||||
class ElaEventBusPrivate : public QObject
|
||||
{
|
||||
class ElaEventBusPrivate : public QObject {
|
||||
Q_OBJECT
|
||||
Q_D_CREATE(ElaEventBus)
|
||||
public:
|
||||
explicit ElaEventBusPrivate(QObject* parent = nullptr);
|
||||
explicit ElaEventBusPrivate(QObject *parent = nullptr);
|
||||
~ElaEventBusPrivate();
|
||||
ElaEventBusType::EventBusReturnType registerEvent(ElaEvent* event);
|
||||
void unRegisterEvent(ElaEvent* event);
|
||||
ElaEventBusType::EventBusReturnType registerEvent(ElaEvent *event);
|
||||
void unRegisterEvent(ElaEvent *event);
|
||||
|
||||
private:
|
||||
QMap<QString, QList<ElaEvent*>> _eventMap;
|
||||
QMap<QString, QList<ElaEvent *>> _eventMap;
|
||||
};
|
||||
|
||||
#endif // ELAEVENTBUSPRIVATE_H
|
||||
|
||||
Reference in New Issue
Block a user