-rw-r--r-- | core/pim/osearch/mainwindow.cpp | 7 | ||||
-rw-r--r-- | core/pim/osearch/olistview.cpp | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp index 33a24bc..093ca54 100644 --- a/core/pim/osearch/mainwindow.cpp +++ b/core/pim/osearch/mainwindow.cpp @@ -79,7 +79,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : - searches.append( new AdressSearch( resultsList, tr("adressbook") ) ); - searches.append( new TodoSearch( resultsList, tr("todo") ) ); - searches.append( new DatebookSearch( resultsList, tr("datebook") ) ); searches.append( new AppLnkSearch( resultsList, tr("applications") ) ); searches.append( new DocLnkSearch( resultsList, tr("documents") ) ); + searches.append( new TodoSearch( resultsList, tr("todo") ) ); + searches.append( new DatebookSearch( resultsList, tr("datebook") ) ); + searches.append( new AdressSearch( resultsList, tr("adressbook") ) ); @@ -126,2 +126,3 @@ void MainWindow::makeMenu() QLineEdit *searchEdit = new QLineEdit( searchBar, "seachEdit" ); + searchEdit->setFocus(); searchBar->setHorizontalStretchable( TRUE ); diff --git a/core/pim/osearch/olistview.cpp b/core/pim/osearch/olistview.cpp index f5fe462..06392ba 100644 --- a/core/pim/osearch/olistview.cpp +++ b/core/pim/osearch/olistview.cpp @@ -21,3 +21,3 @@ OListView::OListView(QWidget *parent, const char *name ) addColumn(tr("Results")); - + setSorting( -1 ); connect( this, SIGNAL(expanded(QListViewItem*)), SLOT(expand(QListViewItem*))); |