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

@@ -4,8 +4,7 @@
#include "ElaProperty.h"
class ElaPromotionCardPrivate;
class ELA_EXPORT ElaPromotionCard : public QWidget
{
class ELA_EXPORT ElaPromotionCard : public QWidget {
Q_OBJECT
Q_Q_CREATE(ElaPromotionCard)
Q_PROPERTY_CREATE_Q_H(int, BorderRadius)
@@ -26,14 +25,14 @@ class ELA_EXPORT ElaPromotionCard : public QWidget
Q_PROPERTY_CREATE_Q_H(qreal, HorizontalCardPixmapRatio)
Q_PROPERTY_CREATE_Q_H(qreal, VerticalCardPixmapRatio)
public:
explicit ElaPromotionCard(QWidget* parent = nullptr);
explicit ElaPromotionCard(QWidget *parent = nullptr);
~ElaPromotionCard();
Q_SIGNALS:
Q_SIGNAL void promotionCardClicked();
protected:
virtual bool event(QEvent* event) override;
virtual void paintEvent(QPaintEvent* event) override;
virtual bool event(QEvent *event) override;
virtual void paintEvent(QPaintEvent *event) override;
};
#endif // ELAPROMOTIONCARD_H