qt-material-widgets/components/flatbutton_p.h

41 lines
1.1 KiB
C
Raw Normal View History

2016-05-14 11:06:20 +00:00
#ifndef FLATBUTTON_P_H
#define FLATBUTTON_P_H
2016-05-24 21:13:01 +00:00
#include <QPalette>
2016-05-14 11:06:20 +00:00
#include "lib/rippleoverlay.h"
2016-05-14 12:18:57 +00:00
#include "lib/theme.h"
2016-05-14 17:00:31 +00:00
#include "lib/style.h"
2016-05-15 09:17:07 +00:00
#include "flatbutton_internal.h"
2016-05-14 11:06:20 +00:00
2016-05-24 21:13:01 +00:00
class FlatButton;
2016-05-14 11:06:20 +00:00
class FlatButtonPrivate
{
Q_DISABLE_COPY(FlatButtonPrivate)
Q_DECLARE_PUBLIC(FlatButton)
public:
2016-05-30 16:03:41 +00:00
FlatButtonPrivate(FlatButton *q);
2016-05-30 23:08:52 +00:00
virtual ~FlatButtonPrivate();
2016-05-14 11:06:20 +00:00
void init();
2016-05-30 16:03:41 +00:00
FlatButton *const q_ptr;
2016-06-21 12:09:16 +00:00
RippleOverlay *const ripple;
FlatButtonDelegate *delegate;
Material::Role role;
Material::RippleStyle rippleStyle;
qreal cornerRadius;
Qt::BGMode bgMode;
QColor textColor;
QColor backgroundColor;
QColor disabledTextColor;
bool useThemeColors;
bool showHalo;
qreal peakOpacity;
bool useFixedRippleRadius;
qreal fixedRippleRadius;
2016-05-14 11:06:20 +00:00
};
#endif // FLATBUTTON_P_H