summaryrefslogtreecommitdiff
path: root/libopie/pim
authortille <tille>2003-05-14 14:19:22 (UTC)
committer tille <tille>2003-05-14 14:19:22 (UTC)
commit3c4a67b8b8d3fb554c5259f9f5ca35c5c826b13c (patch) (side-by-side diff)
tree2d2ab90c571dfa51bb65116d4df0134b65750084 /libopie/pim
parent79fdef27944117811eb1ef51c45a0a630b85a9ad (diff)
downloadopie-3c4a67b8b8d3fb554c5259f9f5ca35c5c826b13c.zip
opie-3c4a67b8b8d3fb554c5259f9f5ca35c5c826b13c.tar.gz
opie-3c4a67b8b8d3fb554c5259f9f5ca35c5c826b13c.tar.bz2
get the field where the hit was
Diffstat (limited to 'libopie/pim') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/ocontact.cpp1
-rw-r--r--libopie/pim/ocontact.h5
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
@@ -960,2 +960,3 @@ bool OContact::match( const QRegExp &r ) const
if ( (*it).find( r ) > -1 ) {
+ setLastHitField( it.key() );
match = true;
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
@@ -216,3 +216,6 @@ public:
static int rtti();
-
+ int lastHitField() const {return m_lastHitField;};
+protected:
+ mutable int m_lastHitField;
+ void setLastHitField(int i) const { m_lastHitField = i; };