qt-material-widgets/components/radiobutton_p.h

40 lines
875 B
C
Raw Normal View History

2016-06-12 16:02:45 +00:00
#ifndef RADIOBUTTON_P_H
#define RADIOBUTTON_P_H
#include <QObject>
2016-06-12 23:19:14 +00:00
#include <QStateMachine>
#include "radiobutton_internal.h"
2016-06-12 16:02:45 +00:00
class RadioButton;
class RippleOverlay;
class RadioButtonPrivate
{
Q_DISABLE_COPY(RadioButtonPrivate)
Q_DECLARE_PUBLIC(RadioButton)
public:
RadioButtonPrivate(RadioButton *q);
void init();
2016-06-12 23:19:14 +00:00
void assignAnimationProperties();
void updatePalette();
RadioButton *const q_ptr;
RippleOverlay *ripple;
2016-06-12 23:19:14 +00:00
RadioButtonIcon *checkedIcon;
RadioButtonIcon *uncheckedIcon;
QStateMachine *machine;
QState *uncheckedState;
QState *checkedState;
int iconSize;
QColor checkedColor;
QColor uncheckedColor;
QColor textColor;
QColor disabledColor;
bool useThemeColors;
2016-06-12 16:02:45 +00:00
};
#endif // RADIOBUTTON_P_H