qt-material-widgets/components/textfield_p.h

40 lines
956 B
C
Raw Normal View History

2022-02-17 15:17:19 +00:00
#ifndef TEXTFIELD_P_H
#define TEXTFIELD_P_H
2017-09-29 17:15:25 +00:00
#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
2022-02-17 15:17:19 +00:00
#endif // TEXTFIELD_P_H