qt-material-widgets/components/flatbutton_p.h

41 lines
1012 B
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;
RippleOverlay *ripple;
FlatButtonDelegate *delegate;
Material::Role role;
2016-05-30 08:25:02 +00:00
Material::RippleStyle rippleStyle;
qreal cornerRadius;
Qt::BGMode bgMode;
2016-06-05 12:07:56 +00:00
QColor textColor;
QColor backgroundColor;
2016-05-30 16:03:41 +00:00
QColor disabledTextColor;
2016-06-05 12:07:56 +00:00
bool useThemeColors;
2016-06-11 16:44:16 +00:00
bool showHalo;
2016-05-30 23:08:52 +00:00
qreal peakOpacity;
2016-06-21 09:55:38 +00:00
bool useFixedRippleRadius;
qreal fixedRippleRadius;
2016-05-14 11:06:20 +00:00
};
#endif // FLATBUTTON_P_H