securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtvalidatorusername.cpp
equal
deleted
inserted
replaced
15 * EAP method username format validator |
15 * EAP method username format validator |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 11 % |
20 * %version: 12 % |
21 */ |
21 */ |
22 |
22 |
23 // System includes |
23 // System includes |
24 #include <HbEditorInterface> |
24 #include <HbEditorInterface> |
25 #include <HbLineEdit> |
25 #include <HbLineEdit> |
80 } |
80 } |
81 |
81 |
82 EapQtValidator::Status EapQtValidatorUsername::validateGeneral(const QVariant& value) |
82 EapQtValidator::Status EapQtValidatorUsername::validateGeneral(const QVariant& value) |
83 { |
83 { |
84 Status status(StatusOk); |
84 Status status(StatusOk); |
85 QString str = value.toString(); |
85 const QString str = value.toString(); |
86 |
86 |
87 // input must be of correct type |
87 // input must be of correct type |
88 if (value.type() != QVariant::String) { |
88 if (value.type() != QVariant::String) { |
89 status = StatusInvalid; |
89 status = StatusInvalid; |
90 } |
90 } |