From 2a37284ab7ea4a29b6e55a84445ad5b2e3d6739b Mon Sep 17 00:00:00 2001 From: tille Date: Sat, 10 May 2003 16:48:06 +0000 Subject: QString::contains( QRegExp ) does not use the settings of QRegExp (QT feature or bug?) lets use QRegExp::match( QString ) instead --- (limited to 'libopie/pim/oevent.cpp') diff --git a/libopie/pim/oevent.cpp b/libopie/pim/oevent.cpp index b731c8a..cda12f9 100644 --- a/libopie/pim/oevent.cpp +++ b/libopie/pim/oevent.cpp @@ -212,15 +212,15 @@ QString OEvent::timeZone()const { return data->timezone; } bool OEvent::match( const QRegExp& re )const { - if (data->description.contains( re ) ) + if ( re.match( data->description ) != -1 ) return true; - if ( data->note.contains( re ) ) + if ( re.match( data->note ) != -1 ) return true; - if ( data->location.contains( re ) ) + if ( re.match( data->location ) != -1 ) return true; - if ( data->start.toString().contains( re ) ) + if ( re.match( data->start.toString() ) != -1 ) return true; - if ( data->end.toString().contains( re ) ) + if ( re.match( data->end.toString() ) != -1 ) return true; return false; } -- cgit v0.9.0.2