chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
#include "ElaProperty.h"
|
||||
class ElaPromotionCard;
|
||||
class ElaPromotionViewPrivate;
|
||||
class ELA_EXPORT ElaPromotionView : public QWidget
|
||||
{
|
||||
class ELA_EXPORT ElaPromotionView : public QWidget {
|
||||
Q_OBJECT
|
||||
Q_Q_CREATE(ElaPromotionView)
|
||||
Q_PROPERTY_CREATE_Q_H(int, CardExpandWidth)
|
||||
@@ -17,14 +16,14 @@ class ELA_EXPORT ElaPromotionView : public QWidget
|
||||
Q_PROPERTY_CREATE_Q_H(bool, IsAutoScroll)
|
||||
Q_PROPERTY_CREATE_Q_H(int, AutoScrollInterval)
|
||||
public:
|
||||
explicit ElaPromotionView(QWidget* parent = nullptr);
|
||||
explicit ElaPromotionView(QWidget *parent = nullptr);
|
||||
~ElaPromotionView();
|
||||
|
||||
void appendPromotionCard(ElaPromotionCard* card);
|
||||
void appendPromotionCard(ElaPromotionCard *card);
|
||||
|
||||
protected:
|
||||
virtual void wheelEvent(QWheelEvent* event) override;
|
||||
virtual void paintEvent(QPaintEvent* event) override;
|
||||
virtual void wheelEvent(QWheelEvent *event) override;
|
||||
virtual void paintEvent(QPaintEvent *event) override;
|
||||
};
|
||||
|
||||
#endif // ELAPROMOTIONVIEW_H
|
||||
|
||||
Reference in New Issue
Block a user