-rw-r--r-- | libopie2/opiepim/otodo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie2/opiepim/otodo.cpp b/libopie2/opiepim/otodo.cpp index a29d88e..e087a00 100644 --- a/libopie2/opiepim/otodo.cpp +++ b/libopie2/opiepim/otodo.cpp @@ -102,18 +102,22 @@ OTodo::OTodo(bool completed, int priority, data->prog = progress; data->desc = Qtopia::simplifyMultiLineSpace(description ); } bool OTodo::match( const QRegExp ®Exp )const { if( QString::number( data->priority ).find( regExp ) != -1 ){ + setLastHitField( Priority ); return true; }else if( data->hasDate && data->date.toString().find( regExp) != -1 ){ + setLastHitField( HasDate ); return true; }else if(data->desc.find( regExp ) != -1 ){ + setLastHitField( Description ); return true; }else if(data->sum.find( regExp ) != -1 ) { + setLastHitField( Summary ); return true; } return false; } bool OTodo::isCompleted() const { |