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

@@ -5,22 +5,21 @@
#include "ElaProperty.h"
class ElaGraphicsViewPrivate;
class ELA_EXPORT ElaGraphicsView : public QGraphicsView
{
class ELA_EXPORT ElaGraphicsView : public QGraphicsView {
Q_OBJECT
Q_Q_CREATE(ElaGraphicsView)
Q_PROPERTY_CREATE_Q_H(qreal, MaxTransform);
Q_PROPERTY_CREATE_Q_H(qreal, MinTransform);
public:
explicit ElaGraphicsView(QWidget* parent = nullptr);
explicit ElaGraphicsView(QGraphicsScene* scene, QWidget* parent = nullptr);
explicit ElaGraphicsView(QWidget *parent = nullptr);
explicit ElaGraphicsView(QGraphicsScene *scene, QWidget *parent = nullptr);
~ElaGraphicsView();
protected:
void wheelEvent(QWheelEvent* event) override;
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
void wheelEvent(QWheelEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
};
#endif // ELAGRAPHICSVIEW_H