chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -5,27 +5,26 @@
|
||||
|
||||
#include "ElaDef.h"
|
||||
class ElaToggleSwitch;
|
||||
class ElaToggleSwitchPrivate : public QObject
|
||||
{
|
||||
class ElaToggleSwitchPrivate : public QObject {
|
||||
Q_OBJECT
|
||||
Q_D_CREATE(ElaToggleSwitch);
|
||||
|
||||
public:
|
||||
explicit ElaToggleSwitchPrivate(QObject* parent = nullptr);
|
||||
explicit ElaToggleSwitchPrivate(QObject *parent = nullptr);
|
||||
~ElaToggleSwitchPrivate();
|
||||
|
||||
private:
|
||||
bool _isToggled{false};
|
||||
int _margin{1};
|
||||
qreal _circleCenterX{0};
|
||||
qreal _circleRadius{0};
|
||||
bool _isLeftButtonPress{false};
|
||||
bool _isMousePressMove{false};
|
||||
int _lastMouseX{0};
|
||||
bool _isToggled{false};
|
||||
int _margin{1};
|
||||
qreal _circleCenterX{0};
|
||||
qreal _circleRadius{0};
|
||||
bool _isLeftButtonPress{false};
|
||||
bool _isMousePressMove{false};
|
||||
int _lastMouseX{0};
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
void _startPosAnimation(qreal startX, qreal endX, bool isToggle);
|
||||
void _startRadiusAnimation(qreal startRadius, qreal endRadius);
|
||||
void _adjustCircleCenterX();
|
||||
void _startPosAnimation(qreal startX, qreal endX, bool isToggle);
|
||||
void _startRadiusAnimation(qreal startRadius, qreal endRadius);
|
||||
void _adjustCircleCenterX();
|
||||
};
|
||||
|
||||
#endif // ELATOGGLESWITCHPRIVATE_H
|
||||
|
||||
Reference in New Issue
Block a user