chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
#include "ElaDef.h"
|
||||
|
||||
class QGraphicsBlurEffect;
|
||||
class ElaCentralStackedWidget : public QStackedWidget
|
||||
{
|
||||
class ElaCentralStackedWidget : public QStackedWidget {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY_CREATE(int, PopupAnimationYOffset)
|
||||
Q_PROPERTY_CREATE(qreal, ScaleAnimationRatio)
|
||||
@@ -15,7 +14,7 @@ class ElaCentralStackedWidget : public QStackedWidget
|
||||
Q_PROPERTY_CREATE(qreal, FlipAnimationRatio)
|
||||
Q_PROPERTY_CREATE(int, BlurAnimationRadius)
|
||||
public:
|
||||
explicit ElaCentralStackedWidget(QWidget* parent = nullptr);
|
||||
explicit ElaCentralStackedWidget(QWidget *parent = nullptr);
|
||||
~ElaCentralStackedWidget() override;
|
||||
Q_SLOT void onThemeModeChanged(ElaThemeType::ThemeMode themeMode);
|
||||
|
||||
@@ -27,19 +26,19 @@ public:
|
||||
void doWindowStackSwitch(ElaWindowType::StackSwitchMode stackSwitchMode, int nodeIndex, bool isRouteBack);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
private:
|
||||
ElaWindowType::StackSwitchMode _stackSwitchMode{ElaWindowType::StackSwitchMode::Popup};
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
QPixmap _targetStackPix;
|
||||
QPixmap _currentStackPix;
|
||||
QGraphicsBlurEffect* _blurEffect{nullptr};
|
||||
bool _isTransparent{false};
|
||||
bool _isHasRadius{true};
|
||||
bool _isDrawNewPix{false};
|
||||
void _getTargetStackPix();
|
||||
void _getCurrentStackPix();
|
||||
ElaThemeType::ThemeMode _themeMode;
|
||||
QPixmap _targetStackPix;
|
||||
QPixmap _currentStackPix;
|
||||
QGraphicsBlurEffect *_blurEffect{nullptr};
|
||||
bool _isTransparent{false};
|
||||
bool _isHasRadius{true};
|
||||
bool _isDrawNewPix{false};
|
||||
void _getTargetStackPix();
|
||||
void _getCurrentStackPix();
|
||||
};
|
||||
|
||||
#endif // ELACENTRALSTACKEDWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user