author | ulf69 <ulf69> | 2004-10-28 17:09:29 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-28 17:09:29 (UTC) |
commit | 5c64eb04c048d7e51f1c71621e1d37c5c0c580a0 (patch) (unidiff) | |
tree | c0c3a06395729d25feeb930479bb153d964a71db | |
parent | 709e2793be2dd47dc0a15488f43fd2f058db2036 (diff) | |
download | kdepimpi-5c64eb04c048d7e51f1c71621e1d37c5c0c580a0.zip kdepimpi-5c64eb04c048d7e51f1c71621e1d37c5c0c580a0.tar.gz kdepimpi-5c64eb04c048d7e51f1c71621e1d37c5c0c580a0.tar.bz2 |
undo nextView fix. Zautrix did the same already in externalapphandler
-rw-r--r-- | kaddressbook/kabcore.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 9ef97c9..ea103a9 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -325,57 +325,48 @@ KABCore::~KABCore() | |||
325 | { | 325 | { |
326 | // save(); | 326 | // save(); |
327 | //saveSettings(); | 327 | //saveSettings(); |
328 | //KABPrefs::instance()->writeConfig(); | 328 | //KABPrefs::instance()->writeConfig(); |
329 | delete AddresseeConfig::instance(); | 329 | delete AddresseeConfig::instance(); |
330 | mAddressBook = 0; | 330 | mAddressBook = 0; |
331 | KABC::StdAddressBook::close(); | 331 | KABC::StdAddressBook::close(); |
332 | 332 | ||
333 | delete syncManager; | 333 | delete syncManager; |
334 | #ifndef DESKTOP_VERSION | 334 | #ifndef DESKTOP_VERSION |
335 | if ( infrared ) | 335 | if ( infrared ) |
336 | delete infrared; | 336 | delete infrared; |
337 | #endif | 337 | #endif |
338 | } | 338 | } |
339 | void KABCore::receive( const QCString& cmsg, const QByteArray& data ) | 339 | void KABCore::receive( const QCString& cmsg, const QByteArray& data ) |
340 | { | 340 | { |
341 | qDebug("KA: QCOP message received: %s ", cmsg.data() ); | 341 | qDebug("KA: QCOP message received: %s ", cmsg.data() ); |
342 | if ( cmsg == "setDocument(QString)" ) { | 342 | if ( cmsg == "setDocument(QString)" ) { |
343 | QDataStream stream( data, IO_ReadOnly ); | 343 | QDataStream stream( data, IO_ReadOnly ); |
344 | QString fileName; | 344 | QString fileName; |
345 | stream >> fileName; | 345 | stream >> fileName; |
346 | recieve( fileName ); | 346 | recieve( fileName ); |
347 | return; | 347 | return; |
348 | } | 348 | } |
349 | else if ( cmsg == "nextView()" ) | ||
350 | { | ||
351 | //toggle between details/ no details | ||
352 | bool b = !mActionDetails->isChecked(); | ||
353 | setDetailsVisible( b ); | ||
354 | mActionDetails->setChecked( b ); | ||
355 | } | ||
356 | |||
357 | |||
358 | } | 349 | } |
359 | void KABCore::toggleBeamReceive( ) | 350 | void KABCore::toggleBeamReceive( ) |
360 | { | 351 | { |
361 | if ( mBRdisabled ) | 352 | if ( mBRdisabled ) |
362 | return; | 353 | return; |
363 | #ifndef DESKTOP_VERSION | 354 | #ifndef DESKTOP_VERSION |
364 | if ( infrared ) { | 355 | if ( infrared ) { |
365 | qDebug("AB disable BeamReceive "); | 356 | qDebug("AB disable BeamReceive "); |
366 | delete infrared; | 357 | delete infrared; |
367 | infrared = 0; | 358 | infrared = 0; |
368 | mActionBR->setChecked(false); | 359 | mActionBR->setChecked(false); |
369 | return; | 360 | return; |
370 | } | 361 | } |
371 | qDebug("AB enable BeamReceive "); | 362 | qDebug("AB enable BeamReceive "); |
372 | mActionBR->setChecked(true); | 363 | mActionBR->setChecked(true); |
373 | 364 | ||
374 | infrared = new QCopChannel("QPE/Application/addressbook",this, "channelAB" ) ; | 365 | infrared = new QCopChannel("QPE/Application/addressbook",this, "channelAB" ) ; |
375 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(receive( const QCString&, const QByteArray& ))); | 366 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(receive( const QCString&, const QByteArray& ))); |
376 | #endif | 367 | #endif |
377 | } | 368 | } |
378 | 369 | ||
379 | 370 | ||
380 | void KABCore::disableBR(bool b) | 371 | void KABCore::disableBR(bool b) |
381 | { | 372 | { |