-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 2 | ||||
-rw-r--r-- | kaddressbook/views/kaddressbookcardview.cpp | 8 | ||||
-rw-r--r-- | kaddressbook/views/kaddressbookiconview.cpp | 8 | ||||
-rw-r--r-- | kaddressbook/views/kaddressbooktableview.cpp | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index b2f2704..f64bfda 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt @@ -786,5 +786,5 @@ { "Show!","Anzeigen!" },
{ "Details","Details" },
-{ "","" },
+{ "Search:","Suche:" },
{ "","" },
{ "","" },
diff --git a/kaddressbook/views/kaddressbookcardview.cpp b/kaddressbook/views/kaddressbookcardview.cpp index 9c35fd6..ca21016 100644 --- a/kaddressbook/views/kaddressbookcardview.cpp +++ b/kaddressbook/views/kaddressbookcardview.cpp @@ -316,7 +316,7 @@ void KAddressBookCardView::doSearch( const QString& s,KABC::Field *field ) continue; #if QT_VERSION >= 0x030000 - if (re.search(field->value( *it ).lower()) != -1) + if (re.search(field->value( *it ).lower()) == 0) #else - if (re.match(field->value( *it ).lower()) != -1) + if (re.match(field->value( *it ).lower()) == 0) #endif new AddresseeCardViewItem(fields(), mShowEmptyFields, @@ -332,7 +332,7 @@ void KAddressBookCardView::doSearch( const QString& s,KABC::Field *field ) for ( fieldIt = fieldList.begin(); fieldIt != fieldList.end(); ++fieldIt ) { #if QT_VERSION >= 0x030000 - if (re.search((*fieldIt)->value( *it ).lower()) != -1) + if (re.search((*fieldIt)->value( *it ).lower()) == 0) #else - if (re.match((*fieldIt)->value( *it ).lower()) != -1) + if (re.match((*fieldIt)->value( *it ).lower()) == 0) #endif { diff --git a/kaddressbook/views/kaddressbookiconview.cpp b/kaddressbook/views/kaddressbookiconview.cpp index 3bdfd1a..4bbdf1d 100644 --- a/kaddressbook/views/kaddressbookiconview.cpp +++ b/kaddressbook/views/kaddressbookiconview.cpp @@ -270,7 +270,7 @@ void KAddressBookIconView::doSearch( const QString& s ,KABC::Field *field ) continue; #if QT_VERSION >= 0x030000 - if (re.search(field->value( *it ).lower()) != -1) + if (re.search(field->value( *it ).lower()) == 0) #else - if (re.match(field->value( *it ).lower()) != -1) + if (re.match(field->value( *it ).lower()) == 0) #endif mIconList.append(new AddresseeIconViewItem( fields(), addressBook(), *it, mIconView )); @@ -286,7 +286,7 @@ void KAddressBookIconView::doSearch( const QString& s ,KABC::Field *field ) for ( fieldIt = fieldList.begin(); fieldIt != fieldList.end(); ++fieldIt ) { #if QT_VERSION >= 0x030000 - if (re.search((*fieldIt)->value( *it ).lower()) != -1) + if (re.search((*fieldIt)->value( *it ).lower()) == 0) #else - if (re.match((*fieldIt)->value( *it ).lower()) != -1) + if (re.match((*fieldIt)->value( *it ).lower()) == 0) #endif { diff --git a/kaddressbook/views/kaddressbooktableview.cpp b/kaddressbook/views/kaddressbooktableview.cpp index 565cd1d..348f491 100644 --- a/kaddressbook/views/kaddressbooktableview.cpp +++ b/kaddressbook/views/kaddressbooktableview.cpp @@ -160,5 +160,5 @@ void KAddressBookTableView::doSearch( const QString& s, KABC::Field *field ) if (re.search(field->value( *it ).lower()) == 0) #else - if (re.match(field->value( *it ).lower()) != -1) + if (re.match(field->value( *it ).lower()) == 0) #endif ContactListViewItem *item = new ContactListViewItem(*it, mListView, addressBook(), fields()); @@ -173,7 +173,7 @@ void KAddressBookTableView::doSearch( const QString& s, KABC::Field *field ) for ( fieldIt = fieldList.begin(); fieldIt != fieldList.end(); ++fieldIt ) { #if QT_VERSION >= 0x030000 - if (re.search((*fieldIt)->value( *it ).lower()) != -1) + if (re.search((*fieldIt)->value( *it ).lower()) == 0) #else - if (re.match((*fieldIt)->value( *it ).lower()) != -1) + if (re.match((*fieldIt)->value( *it ).lower()) == 0) #endif { |