author | tille <tille> | 2003-05-16 19:36:33 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-16 19:36:33 (UTC) |
commit | 87051a7ba4834aed152bc09aad7f4935c9729ccb (patch) (side-by-side diff) | |
tree | 85c2b2274efede684b1914a4e4a1b2c87bddf6b3 /core | |
parent | 1ac65aca5d1219e537238330501bc441dd2a3324 (diff) | |
download | opie-87051a7ba4834aed152bc09aad7f4935c9729ccb.zip opie-87051a7ba4834aed152bc09aad7f4935c9729ccb.tar.gz opie-87051a7ba4834aed152bc09aad7f4935c9729ccb.tar.bz2 |
and some whatsthis
-rw-r--r-- | core/pim/osearch/adresssearch.cpp | 3 | ||||
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 2 | ||||
-rw-r--r-- | core/pim/osearch/mainwindow.cpp | 24 |
3 files changed, 16 insertions, 13 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index 252fb40..2cd545f 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp @@ -13,8 +13,9 @@ #include "adresssearch.h" -#include <opie/ocontactaccess.h> #include <qstring.h> #include <qiconset.h> +#include <qwhatsthis.h> #include <qpe/resource.h> +#include <opie/ocontactaccess.h> #include "contactitem.h" diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index 68e0cd4..c4738ae 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp @@ -43,6 +43,4 @@ void ContactItem::setIcon() break; case Qtopia::DefaultEmail: - icon = Resource::loadPixmap( "addressbook/email" ); - break; case Qtopia::Emails: icon = Resource::loadPixmap( "addressbook/email" ); diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp index 2936b17..c6934db 100644 --- a/core/pim/osearch/mainwindow.cpp +++ b/core/pim/osearch/mainwindow.cpp @@ -11,15 +11,5 @@ -#include "mainwindow.h" -#include <qpe/qpemenubar.h> -#include <qpe/qpemessagebox.h> -#include <qpe/resource.h> -#include <qpe/config.h> -#include <qpe/qpetoolbar.h> -#include <qpe/qpeapplication.h> -#include <qpe/config.h> -#include <qpe/global.h> -#include <opie/owait.h> #include <qaction.h> #include <qmessagebox.h> @@ -36,4 +26,14 @@ #include <qtextbrowser.h> #include <qregexp.h> +#include <qwhatsthis.h> +#include <qpe/qpemenubar.h> +#include <qpe/qpemessagebox.h> +#include <qpe/resource.h> +#include <qpe/config.h> +#include <qpe/qpetoolbar.h> +#include <qpe/qpeapplication.h> +#include <qpe/config.h> +#include <qpe/global.h> +#include <opie/owait.h> #include "olistview.h" @@ -45,4 +45,5 @@ #include "applnksearch.h" #include "doclnksearch.h" +#include "mainwindow.h" MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : @@ -67,4 +68,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : QVBoxLayout *detailsLayout = new QVBoxLayout( detailsFrame ); richEdit = new QTextView( detailsFrame ); + QWhatsThis::add( richEdit, tr("The details of the current result") ); richEdit->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); detailsLayout->addWidget( richEdit ); @@ -135,4 +137,5 @@ void MainWindow::makeMenu() SearchAllAction = new QAction( tr("Search all"),QString::null, 0, this, 0 ); SearchAllAction->setIconSet( Resource::loadIconSet( "find" ) ); + // QWhatsThis::add( SearchAllAction, tr("Search everything...") ); connect( SearchAllAction, SIGNAL(activated()), this, SLOT(searchAll()) ); SearchAllAction->addTo( searchMenu ); @@ -150,4 +153,5 @@ void MainWindow::makeMenu() addToolBar( searchBar, "Search", QMainWindow::Top, TRUE ); QLineEdit *searchEdit = new QLineEdit( searchBar, "seachEdit" ); + QWhatsThis::add( searchEdit, tr("Enter your search terms here") ); searchEdit->setFocus(); searchBar->setHorizontalStretchable( TRUE ); |