17 lines
483 B
C++
17 lines
483 B
C++
#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;
|
|
void drawControl2(ControlElement element, const QStyleOption *option,
|
|
QPainter *painter, const QWidget *widget = nullptr) const;
|
|
};
|
|
|
|
#endif // MENUBTNSTYLE_H
|