Openmoko Bug #1966: The qtopia addressbook does not provide a search bar

Openmoko Public Trac bugs at docs.openmoko.org
Wed Sep 17 18:26:21 CEST 2008


#1966: The qtopia addressbook does not provide a search bar
-----------------------------------------+----------------------------------
    Reporter:  f.hackenberger at chello.at  |        Owner:  zecke   
        Type:  enhancement               |       Status:  new     
    Priority:  normal                    |    Milestone:          
   Component:  Qtopia                    |      Version:  Om2008.8
    Severity:  blocker                   |   Resolution:          
    Keywords:  PM, HasPatch              |    Blockedby:          
Reproducible:                            |     Blocking:          
-----------------------------------------+----------------------------------

Comment(by Treviño):

 Ok, this does the work.

 Addressbook:
 {{{
 diff --git a/src/applications/addressbook/contactlistpane.cpp
 b/src/applications/addressbook/contactlistpane.cpp
 index 381a05d..d817e6b 100644
 --- a/src/applications/addressbook/contactlistpane.cpp
 +++ b/src/applications/addressbook/contactlistpane.cpp
 @@ -177,7 +177,7 @@ void ContactListPane::search( const QString &text )
      if (text.isEmpty()) {
          mModel->clearFilter();
      } else {
 -        mModel->setFilter( text );
 +        mModel->setFilter( text.trimmed() );
      }
  }

 }}}

 Contactview:
 {{{
 diff --git a/src/libraries/qtopiapim/qcontactview.cpp
 b/src/libraries/qtopiapim/qcontactview.cpp
 index 065d9c9..531126f 100644
 --- a/src/libraries/qtopiapim/qcontactview.cpp
 +++ b/src/libraries/qtopiapim/qcontactview.cpp
 @@ -700,7 +707,7 @@ void QContactSelector::setSelected(const QModelIndex&
 idx)
  void QContactSelector::filterList(const QString& str)
  {
      if (d->mModel) {
 -        d->mModel->setFilter(str, d->mModel->filterFlags());
 +        d->mModel->setFilter(str.trimmed(), d->mModel->filterFlags());
      }
  }

 }}}

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1966#comment:12>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list