author | harlekin <harlekin> | 2002-11-27 14:35:21 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-11-27 14:35:21 (UTC) |
commit | 4d7272423782dc2f9f7dbde36b848f55eb323c79 (patch) (side-by-side diff) | |
tree | 93fee7538aca84be74f81406776cec7c6867cc4a /core/pim/today/today.cpp | |
parent | 5f0c90d4b6972c1ad22ba20b45cd1d3f88298099 (diff) | |
download | opie-4d7272423782dc2f9f7dbde36b848f55eb323c79.zip opie-4d7272423782dc2f9f7dbde36b848f55eb323c79.tar.gz opie-4d7272423782dc2f9f7dbde36b848f55eb323c79.tar.bz2 |
fix for bug #494 which is imho a flat style bug
-rw-r--r-- | core/pim/today/today.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index e6f8c93..76bd6de 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -67,49 +67,48 @@ Today::Today( QWidget* parent, const char* name, WFlags fl ) #endif setOwnerField(); m_refreshTimer = new QTimer( this ); connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); m_refreshTimer->start( 15000 ); refresh(); showMaximized(); } /** * Qcop receive method. */ void Today::channelReceived( const QCString &msg, const QByteArray & data ) { QDataStream stream( data, IO_ReadOnly ); if ( msg == "message(QString)" ) { QString message; stream >> message; setOwnerField( message ); } } void Today::setRefreshTimer( int interval ) { - disconnect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); // 0 is "never" case if ( !interval == 0 ) { connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); m_refreshTimer->changeInterval( interval ); } } /** * Initialises the owner field with the default value, the username */ void Today::setOwnerField() { QString file = Global::applicationFileName( "addressbook", "businesscard.vcf" ); if ( QFile::exists( file ) ) { Contact cont = Contact::readVCard( file )[0]; QString returnString = cont.fullName(); OwnerField->setText( "<b>" + tr ( "Owned by " ) + returnString + "</b>" ); } else { OwnerField->setText( "<b>" + tr ( "Please fill out the business card" ) + " </b>" ); } } |