-rw-r--r-- | libopie/pim/ocontact.cpp | 1 | ||||
-rw-r--r-- | libopie/pim/ocontact.h | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index a38b62b..aeb69ee 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp | |||
@@ -955,12 +955,13 @@ bool OContact::match( const QRegExp &r ) const | |||
955 | { | 955 | { |
956 | bool match; | 956 | bool match; |
957 | match = false; | 957 | match = false; |
958 | QMap<int, QString>::ConstIterator it; | 958 | QMap<int, QString>::ConstIterator it; |
959 | for ( it = mMap.begin(); it != mMap.end(); ++it ) { | 959 | for ( it = mMap.begin(); it != mMap.end(); ++it ) { |
960 | if ( (*it).find( r ) > -1 ) { | 960 | if ( (*it).find( r ) > -1 ) { |
961 | setLastHitField( it.key() ); | ||
961 | match = true; | 962 | match = true; |
962 | break; | 963 | break; |
963 | } | 964 | } |
964 | } | 965 | } |
965 | return match; | 966 | return match; |
966 | } | 967 | } |
diff --git a/libopie/pim/ocontact.h b/libopie/pim/ocontact.h index 0e6cbd2..f79f0f3 100644 --- a/libopie/pim/ocontact.h +++ b/libopie/pim/ocontact.h | |||
@@ -211,13 +211,16 @@ public: | |||
211 | // Why private ? (eilers,se) | 211 | // Why private ? (eilers,se) |
212 | QString emailSeparator() const { return " "; } | 212 | QString emailSeparator() const { return " "; } |
213 | // the emails should be seperated by a comma | 213 | // the emails should be seperated by a comma |
214 | void setEmails( const QString &v ); | 214 | void setEmails( const QString &v ); |
215 | QString emails() const { return find( Qtopia::Emails ); } | 215 | QString emails() const { return find( Qtopia::Emails ); } |
216 | static int rtti(); | 216 | static int rtti(); |
217 | 217 | int lastHitField() const {return m_lastHitField;}; | |
218 | protected: | ||
219 | mutable int m_lastHitField; | ||
220 | void setLastHitField(int i) const { m_lastHitField = i; }; | ||
218 | 221 | ||
219 | private: | 222 | private: |
220 | // The XML-Backend needs some access to the private functions | 223 | // The XML-Backend needs some access to the private functions |
221 | friend class OContactAccessBackend_XML; | 224 | friend class OContactAccessBackend_XML; |
222 | 225 | ||
223 | void insert( int key, const QString &value ); | 226 | void insert( int key, const QString &value ); |