From cb7218cf112f24976e6f6bbd6e683d38ba31b00b Mon Sep 17 00:00:00 2001 From: eilers Date: Sat, 09 Nov 2002 14:32:55 +0000 Subject: added --- diff --git a/library/backend/contact.h b/library/backend/contact.h index 4999430..2294986 100644 --- a/library/backend/contact.h +++ b/library/backend/contact.h @@ -203,6 +203,8 @@ public: void setUid( int i ) { Record::setUid(i); replace( Qtopia::AddressUid , QString::number(i)); } + void setEmails( const QString &v ); + QString emails() const { return find( Qtopia::Emails ); } private: friend class AbEditor; friend class AbTable; @@ -211,8 +213,6 @@ private: QString emailSeparator() const { return " "; } // the emails should be seperated by a comma - void setEmails( const QString &v ); - QString emails() const { return find( Qtopia::Emails ); } void insert( int key, const QString &value ); void replace( int key, const QString &value ); diff --git a/library/backend/timeconversion.cpp b/library/backend/timeconversion.cpp index 3c25922..df7b0d5 100644 --- a/library/backend/timeconversion.cpp +++ b/library/backend/timeconversion.cpp @@ -25,15 +25,24 @@ QString TimeConversion::toString( const QDate &d ) { - QString r = QString::number( d.day() ) + "." + + QString empty; + if ( d.isNull() ) + return empty; + + QString r = QString::number( d.day() ) + "." + QString::number( d.month() ) + "." + QString::number( d.year() ); - //qDebug("TimeConversion::toString %s", r.latin1()); - return r; + //qDebug("TimeConversion::toString %s", r.latin1()); + + return r; } QDate TimeConversion::fromString( const QString &datestr ) { + QDate empty; + if ( datestr.isEmpty() ) + return empty; + int monthPos = datestr.find('.'); int yearPos = datestr.find('.', monthPos+1 ); if ( monthPos == -1 || yearPos == -1 ) { diff --git a/library/library.pro b/library/library.pro index fba98f8..142c609 100644 --- a/library/library.pro +++ b/library/library.pro @@ -113,6 +113,8 @@ SOURCES = calendar.cpp \ findwidget_p.cpp \ finddialog.cpp \ lnkproperties.cpp +# QPE crashes on my Notebook if it tries to play sound +DEFINES = QT_NO_SOUND # Qt 3 compatibility HEADERS += quuid.h qcom.h qlibrary.h qlibrary_p.h SOURCES += quuid.cpp qlibrary.cpp qlibrary_unix.cpp -- cgit v0.9.0.2