equal
deleted
inserted
replaced
15 * EAP method validator: realm |
15 * EAP method validator: realm |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 5 % |
20 * %version: 6 % |
21 */ |
21 */ |
22 |
22 |
23 #include <HbEditorInterface> |
23 #include <HbEditorInterface> |
24 #include <HbLineEdit> |
24 #include <HbLineEdit> |
25 |
25 |
82 return status; |
82 return status; |
83 } |
83 } |
84 |
84 |
85 void EapQtValidatorRealm::updateEditor(HbLineEdit *edit) |
85 void EapQtValidatorRealm::updateEditor(HbLineEdit *edit) |
86 { |
86 { |
|
87 Q_ASSERT(edit); |
|
88 if(edit == NULL) { |
|
89 return; |
|
90 } |
|
91 |
87 switch (mEapType.type()) { |
92 switch (mEapType.type()) { |
88 case EapQtExpandedEapType::TypeEapAka: |
93 case EapQtExpandedEapType::TypeEapAka: |
89 case EapQtExpandedEapType::TypeEapFast: |
94 case EapQtExpandedEapType::TypeEapFast: |
90 case EapQtExpandedEapType::TypeEapGtc: |
95 case EapQtExpandedEapType::TypeEapGtc: |
91 case EapQtExpandedEapType::TypeEapMschapv2: |
96 case EapQtExpandedEapType::TypeEapMschapv2: |
104 |
109 |
105 void EapQtValidatorRealm::updateEditorGeneral(HbLineEdit *edit) |
110 void EapQtValidatorRealm::updateEditorGeneral(HbLineEdit *edit) |
106 { |
111 { |
107 qDebug("EapQtValidatorRealm::updateEditorGeneral()"); |
112 qDebug("EapQtValidatorRealm::updateEditorGeneral()"); |
108 |
113 |
|
114 Q_ASSERT(edit); |
|
115 |
109 edit->setMaxLength(EapQtConfigInterfacePrivate::StringMaxLength); |
116 edit->setMaxLength(EapQtConfigInterfacePrivate::StringMaxLength); |
110 edit->setInputMethodHints(Qt::ImhNoAutoUppercase | Qt::ImhPreferLowercase |
117 edit->setInputMethodHints(Qt::ImhNoAutoUppercase | Qt::ImhPreferLowercase |
111 | Qt::ImhNoPredictiveText); |
118 | Qt::ImhNoPredictiveText); |
112 |
119 |
113 HbEditorInterface editInterface(edit); |
120 HbEditorInterface editInterface(edit); |