Files
cbh/ElaWidgetTools/DeveloperComponents/ElaProgressBarStyle.h
2025-09-20 01:41:33 +08:00

20 lines
602 B
C++

#ifndef ELAPROGRESSBARSTYLE_H
#define ELAPROGRESSBARSTYLE_H
#include <QProxyStyle>
#include "ElaDef.h"
class ElaProgressBarStyle : public QProxyStyle {
Q_OBJECT
public:
explicit ElaProgressBarStyle(QStyle *style = nullptr);
~ElaProgressBarStyle();
void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = nullptr) const override;
QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const override;
private:
ElaThemeType::ThemeMode _themeMode;
};
#endif // ELAPROGRESSBARSTYLE_H