qt-material-widgets/components/flatbutton_p.h

40 lines
938 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-14 11:06:20 +00:00
void init();
2016-05-30 16:03:41 +00:00
/*
void setPaletteColor(QPalette::ColorGroup group, QPalette::ColorRole role, const QColor &color);
*/
2016-05-14 17:13:32 +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-05-30 16:03:41 +00:00
QColor primaryTextColor;
QColor secondaryTextColor;
QColor defaultTextColor;
QColor disabledTextColor;
2016-05-14 11:06:20 +00:00
};
#endif // FLATBUTTON_P_H