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/kaddressbookiconview.cpp') diff --git a/kaddressbook/views/kaddressbookiconview.cpp b/kaddressbook/views/kaddressbookiconview.cpp index fb53215..3bdfd1a 100644 --- a/kaddressbook/views/kaddressbookiconview.cpp +++ b/kaddressbook/views/kaddressbookiconview.cpp @@ -259,11 +259,7 @@ void KAddressBookIconView::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