author | tux_mike <tux_mike> | 2002-04-08 21:07:14 (UTC) |
---|---|---|
committer | tux_mike <tux_mike> | 2002-04-08 21:07:14 (UTC) |
commit | 3c37907fd38287a8402cca1063ce6ba69c75e954 (patch) (side-by-side diff) | |
tree | 41bc02fc351a0db0667ddbd7f6d12cfb19a6ffee /core/pim/addressbook/addressbook.cpp | |
parent | 9dd42008cd6dea68520c58a569874a7cc8230eb0 (diff) | |
download | opie-3c37907fd38287a8402cca1063ce6ba69c75e954.zip opie-3c37907fd38287a8402cca1063ce6ba69c75e954.tar.gz opie-3c37907fd38287a8402cca1063ce6ba69c75e954.tar.bz2 |
Fixed little bugs, added macro to disable find on sharp rom, other small feature additons.
Diffstat (limited to 'core/pim/addressbook/addressbook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index e8fa37c..5a8038b 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -30,5 +30,9 @@ #include <qpe/config.h> #include <qpe/contact.h> + +#ifndef MAKE_FOR_SHARP_ROM #include <qpe/finddialog.h> +#endif + #include <qpe/global.h> #include <qpe/resource.h> @@ -130,4 +134,5 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, a->addTo( listTools ); +#ifndef MAKE_FOR_SHARP_ROM a = new QAction( tr( "Find" ), Resource::loadPixmap( "mag" ), QString::null, 0, this, 0 ); @@ -136,4 +141,5 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, a->addTo( edit ); a->addTo( listTools ); +#endif @@ -511,5 +517,7 @@ void AddressbookWindow::slotPersonalView() actionNew->setEnabled(TRUE); actionTrash->setEnabled(TRUE); +#ifndef MAKE_FOR_SHARP_ROM actionFind->setEnabled(TRUE); +#endif slotUpdateToolbar(); // maybe some of the above could be moved there showList(); @@ -520,5 +528,7 @@ void AddressbookWindow::slotPersonalView() actionNew->setEnabled(FALSE); actionTrash->setEnabled(FALSE); +#ifndef MAKE_FOR_SHARP_ROM actionFind->setEnabled(FALSE); +#endif actionMail->setEnabled(FALSE); @@ -777,14 +787,20 @@ AbLabel *AddressbookWindow::abView() void AddressbookWindow::slotFind() { +#ifndef MAKE_FOR_SHARP_ROM if ( centralWidget() == abView() ) showList(); + FindDialog frmFind( "Contacts", this ); QObject::connect( &frmFind, SIGNAL(signalFindClicked(const QString &, bool, bool, int)), abList, SLOT(slotDoFind( const QString&,bool,bool,int))); QObject::connect( abList, SIGNAL(signalNotFound()), &frmFind, SLOT(slotNotFound()) ); QObject::connect( abList, SIGNAL(signalWrapAround()), &frmFind, SLOT(slotWrapAround()) ); + frmFind.exec(); + if ( abList->numSelections() ) abList->clearSelection(); + abList->clearFindRow(); +#endif } |