From 3a6e3862e0b813965f633a51e9a116e5f8f26b23 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 27 Jan 2005 14:46:38 +0000 Subject: fix --- (limited to 'kaddressbook/views/kaddressbooktableview.cpp') diff --git a/kaddressbook/views/kaddressbooktableview.cpp b/kaddressbook/views/kaddressbooktableview.cpp index b73ceaa..f4b008c 100644 --- a/kaddressbook/views/kaddressbooktableview.cpp +++ b/kaddressbook/views/kaddressbooktableview.cpp @@ -143,11 +143,7 @@ void KAddressBookTableView::doSearch( const QString& s, KABC::Field *field ) refresh(); return; } - QString pattern = s.lower()+"*"; - QRegExp re; - re.setWildcard(true); // most people understand these better. - re.setCaseSensitive(false); - re.setPattern( pattern ); + QRegExp re = getRegExp( s ); if (!re.isValid()) return; KABC::Addressee::List addresseeList = addressees(); -- cgit v0.9.0.2