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

@@ -7,8 +7,7 @@
class ElaRoller;
class QPropertyAnimation;
class ElaRollerPrivate : public QObject
{
class ElaRollerPrivate : public QObject {
Q_OBJECT
Q_D_CREATE(ElaRoller)
Q_PROPERTY_CREATE_D(int, BorderRadius)
@@ -18,17 +17,17 @@ class ElaRollerPrivate : public QObject
Q_PROPERTY_CREATE_D(int, MaxVisibleItems)
Q_PROPERTY_CREATE_D(int, CurrentIndex)
public:
explicit ElaRollerPrivate(QObject* parent = nullptr);
explicit ElaRollerPrivate(QObject *parent = nullptr);
~ElaRollerPrivate() override;
private:
ElaThemeType::ThemeMode _themeMode;
QPropertyAnimation* _scrollAnimation{nullptr};
int _penBorderWidth{1};
int _indicatorMargin{3};
qreal _targetScrollOffset{0};
QPoint _mousePoint;
void _scroll(int delta);
QPropertyAnimation *_scrollAnimation{nullptr};
int _penBorderWidth{1};
int _indicatorMargin{3};
qreal _targetScrollOffset{0};
QPoint _mousePoint;
void _scroll(int delta);
};
#endif //ELAFRAMEWORK_ELAWIDGETTOOLS_PRIVATE_ELAROLLERPRIVATE_H_
#endif // ELAFRAMEWORK_ELAWIDGETTOOLS_PRIVATE_ELAROLLERPRIVATE_H_