18 Q_PROPERTY( QString displayText READ displayText NOTIFY displayTextChanged )
20 Q_PROPERTY(
int maximumLength READ maxLength
21 WRITE setMaxLength NOTIFY maximumLengthChanged )
23 Q_PROPERTY( QString inputMask READ inputMask
24 WRITE setInputMask NOTIFY inputMaskChanged )
26 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput
27 NOTIFY acceptableInputChanged)
29 Q_PROPERTY(
bool autoScroll READ autoScroll
30 WRITE setAutoScroll NOTIFY autoScrollChanged )
32 Q_PROPERTY( EchoMode echoMode READ echoMode
33 WRITE setEchoMode NOTIFY echoModeChanged )
35 Q_PROPERTY( QString passwordCharacter READ passwordCharacter
36 WRITE setPasswordCharacter RESET resetPasswordCharacter
37 NOTIFY passwordCharacterChanged )
39 Q_PROPERTY(
int passwordMaskDelay READ passwordMaskDelay
40 WRITE setPasswordMaskDelay RESET resetPasswordMaskDelay
41 NOTIFY passwordMaskDelayChanged )
43 Q_PROPERTY( QValidator* validator READ validator
44 WRITE setValidator NOTIFY validatorChanged )
49 QSK_SUBCONTROLS( Text, TextPanel )
52 enum EchoMode : quint8
65 int maxLength()
const;
66 void setMaxLength(
int );
68 QValidator* validator()
const;
69 void setValidator( QValidator* );
71 QString inputMask()
const;
72 void setInputMask(
const QString& );
74 bool autoScroll()
const;
75 void setAutoScroll(
bool );
77 EchoMode echoMode()
const;
78 void setEchoMode( EchoMode );
80 QString passwordCharacter()
const;
81 void setPasswordCharacter(
const QString& );
82 void resetPasswordCharacter();
84 int passwordMaskDelay()
const;
85 void setPasswordMaskDelay(
int );
86 void resetPasswordMaskDelay();
88 QString displayText()
const;
90 bool hasAcceptableInput()
const;
93 void ensureVisible(
int position );
96 void maximumLengthChanged(
int );
98 void autoScrollChanged(
bool );
100 void echoModeChanged( EchoMode );
101 void passwordMaskDelayChanged();
102 void passwordCharacterChanged();
104 void validatorChanged(
const QValidator* );
105 void inputMaskChanged(
const QString& );
106 void acceptableInputChanged(
bool );
108 void displayTextChanged();
116 std::unique_ptr< PrivateData > m_data;