chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user