@@ -144,31 +144,31 @@ void TestEntrySearcher::testSearchTermParser()
144
144
145
145
QCOMPARE (terms.length (), 5 );
146
146
147
- QCOMPARE (terms[0 ]->field , EntrySearcher::Undefined);
147
+ QCOMPARE (terms[0 ]->field , EntrySearcher::Field:: Undefined);
148
148
QCOMPARE (terms[0 ]->word , QString (" test" ));
149
149
QCOMPARE (terms[0 ]->exclude , true );
150
150
151
- QCOMPARE (terms[1 ]->field , EntrySearcher::Undefined);
151
+ QCOMPARE (terms[1 ]->field , EntrySearcher::Field:: Undefined);
152
152
QCOMPARE (terms[1 ]->word , QString (" quoted \\\" string\\\" " ));
153
153
QCOMPARE (terms[1 ]->exclude , false );
154
154
155
- QCOMPARE (terms[2 ]->field , EntrySearcher::Username);
155
+ QCOMPARE (terms[2 ]->field , EntrySearcher::Field:: Username);
156
156
QCOMPARE (terms[2 ]->word , QString (" user" ));
157
157
158
- QCOMPARE (terms[3 ]->field , EntrySearcher::Password);
158
+ QCOMPARE (terms[3 ]->field , EntrySearcher::Field:: Password);
159
159
QCOMPARE (terms[3 ]->word , QString (" test me" ));
160
160
161
- QCOMPARE (terms[4 ]->field , EntrySearcher::Undefined);
161
+ QCOMPARE (terms[4 ]->field , EntrySearcher::Field:: Undefined);
162
162
QCOMPARE (terms[4 ]->word , QString (" noquote" ));
163
163
164
164
// Test wildcard and regex search terms
165
165
terms = m_entrySearcher.parseSearchTerms (" +url:*.google.com *user:\\ d+\\ w{2}" );
166
166
167
167
QCOMPARE (terms.length (), 2 );
168
168
169
- QCOMPARE (terms[0 ]->field , EntrySearcher::Url);
169
+ QCOMPARE (terms[0 ]->field , EntrySearcher::Field:: Url);
170
170
QCOMPARE (terms[0 ]->regex .pattern (), QString (" ^.*\\ .google\\ .com$" ));
171
171
172
- QCOMPARE (terms[1 ]->field , EntrySearcher::Username);
172
+ QCOMPARE (terms[1 ]->field , EntrySearcher::Field:: Username);
173
173
QCOMPARE (terms[1 ]->regex .pattern (), QString (" \\ d+\\ w{2}" ));
174
174
}
0 commit comments