qt-material-widgets/components/qtmaterialtextfield_p.h

40 lines
986 B
C
Raw Normal View History

2017-09-29 17:15:25 +00:00
#ifndef QTMATERIALTEXTFIELD_P_H
#define QTMATERIALTEXTFIELD_P_H
#include <QtGlobal>
#include <QColor>
2022-02-17 03:08:05 +00:00
namespace md
{
class TextField;
class TextFieldStateMachine;
class TextFieldLabel;
2017-09-29 17:15:25 +00:00
2022-02-17 03:08:05 +00:00
class TextFieldPrivate
2017-09-29 17:15:25 +00:00
{
2022-02-17 03:08:05 +00:00
Q_DISABLE_COPY(TextFieldPrivate)
Q_DECLARE_PUBLIC(TextField)
2017-09-29 17:15:25 +00:00
public:
2022-02-17 03:08:05 +00:00
TextFieldPrivate(TextField *q);
virtual ~TextFieldPrivate();
2017-09-29 17:15:25 +00:00
void init();
2022-02-17 03:08:05 +00:00
TextField *const q_ptr;
TextFieldStateMachine *stateMachine;
TextFieldLabel *label;
2017-09-29 17:15:25 +00:00
QColor textColor;
QColor labelColor;
QColor inkColor;
2017-10-06 05:29:38 +00:00
QColor inputLineColor;
2017-09-29 17:15:25 +00:00
QString labelString;
qreal labelFontSize;
bool showLabel;
2017-10-06 05:29:38 +00:00
bool showInputLine;
2017-09-29 17:15:25 +00:00
bool useThemeColors;
};
2022-02-17 03:08:05 +00:00
}
2017-09-29 17:15:25 +00:00
#endif // QTMATERIALTEXTFIELD_P_H