2020-10-24 14:43:01 +08:00
|
|
|
#ifndef MENUBTNSTYLE_H
|
|
|
|
#define MENUBTNSTYLE_H
|
|
|
|
|
|
|
|
#include <QProxyStyle>
|
|
|
|
#include <QIcon>
|
|
|
|
|
|
|
|
class MenuBtnStyle : public QProxyStyle
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void drawControl(ControlElement element, const QStyleOption *option,
|
|
|
|
QPainter *painter, const QWidget *widget = nullptr) const override;
|
2020-10-24 14:47:46 +08:00
|
|
|
void drawControl2(ControlElement element, const QStyleOption *option,
|
|
|
|
QPainter *painter, const QWidget *widget = nullptr) const;
|
2020-10-24 14:43:01 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MENUBTNSTYLE_H
|