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,32 +7,31 @@
#include <QVBoxLayout>
#include <QGraphicsOpacityEffect>
class ElaDrawerContainer : public QWidget
{
class ElaDrawerContainer : public QWidget {
Q_OBJECT
Q_PRIVATE_CREATE(int, BorderRadius)
Q_PRIVATE_CREATE(QPixmap, ContainerPix)
Q_PROPERTY_CREATE(qreal, Opacity)
public:
explicit ElaDrawerContainer(QWidget* parent = nullptr);
explicit ElaDrawerContainer(QWidget *parent = nullptr);
~ElaDrawerContainer() override;
void addWidget(QWidget* widget);
void removeWidget(QWidget* widget);
void addWidget(QWidget *widget);
void removeWidget(QWidget *widget);
void doDrawerAnimation(bool isExpand);
protected:
virtual void paintEvent(QPaintEvent* event) override;
virtual void paintEvent(QPaintEvent *event) override;
private:
bool _isShowBorder{true};
bool _isShowBorder{true};
ElaThemeType::ThemeMode _themeMode;
QVBoxLayout* _mainLayout{nullptr};
QVBoxLayout* _containerLayout{nullptr};
QWidget* _containerWidget{nullptr};
QList<QWidget*> _drawerWidgetList;
int _calculateContainerMinimumHeight() const;
QVBoxLayout *_mainLayout{nullptr};
QVBoxLayout *_containerLayout{nullptr};
QWidget *_containerWidget{nullptr};
QList<QWidget *> _drawerWidgetList;
int _calculateContainerMinimumHeight() const;
};
#endif //ELAFRAMEWORK_ELAWIDGETTOOLS_DEVELOPERCOMPONENTS_ELADRAWERCONTAINER_H_
#endif // ELAFRAMEWORK_ELAWIDGETTOOLS_DEVELOPERCOMPONENTS_ELADRAWERCONTAINER_H_