qt-material-widgets/components/qtmaterialmenuitem.h

28 lines
557 B
C
Raw Normal View History

2017-09-29 17:54:41 +00:00
#ifndef QTMATERIALMENUITEM_H
#define QTMATERIALMENUITEM_H
2017-09-29 17:59:35 +00:00
#include "qtmaterialflatbutton.h"
2017-09-29 17:54:41 +00:00
class QtMaterialMenuItemPrivate;
class QtMaterialMenuItem : public QtMaterialFlatButton
{
Q_OBJECT
public:
explicit QtMaterialMenuItem(QWidget *parent = 0);
~QtMaterialMenuItem();
void setHighlighted(bool value);
bool isHighlighted() const;
protected:
void paintForeground(QPainter *painter) Q_DECL_OVERRIDE;
private:
Q_DISABLE_COPY(QtMaterialMenuItem)
Q_DECLARE_PRIVATE(QtMaterialMenuItem)
};
#endif // QTMATERIALMENUITEM_H