From 03b0b804eb016e2d9ae851db960e843d0d629e0a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 8 Mar 2026 20:44:13 +0900 Subject: Remove use of KDE_IS_VERSION Signed-off-by: Michele Calgaro --- libtdepim/kaddrbook.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libtdepim/kaddrbook.cpp') diff --git a/libtdepim/kaddrbook.cpp b/libtdepim/kaddrbook.cpp index cb831d41..2752f95e 100644 --- a/libtdepim/kaddrbook.cpp +++ b/libtdepim/kaddrbook.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -45,7 +44,6 @@ void KAddrBookExternal::openEmail( const TQString &addr, TQWidget *parent ) { // if we have to reload the address book then we should also wait until // it's completely reloaded -#if KDE_IS_VERSION(3,4,89) // This ugly hack will be removed in 4.0 while ( !ab->loadingHasFinished() ) { TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); @@ -53,7 +51,7 @@ void KAddrBookExternal::openEmail( const TQString &addr, TQWidget *parent ) { // use sleep here to reduce cpu usage usleep( 100 ); } -#endif + // End of ugly hack TDEABC::Addressee::List addressees = ab->findByEmail( email ); @@ -98,7 +96,6 @@ void KAddrBookExternal::addEmail( const TQString& addr, TQWidget *parent) { // if we have to reload the address book then we should also wait until // it's completely reloaded -#if KDE_IS_VERSION(3,4,89) // This ugly hack will be removed in 4.0 while ( !ab->loadingHasFinished() ) { TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); @@ -106,7 +103,7 @@ void KAddrBookExternal::addEmail( const TQString& addr, TQWidget *parent) { // use sleep here to reduce cpu usage usleep( 100 ); } -#endif + // End of ugly hack TDEABC::Addressee::List addressees = ab->findByEmail( email ); @@ -255,7 +252,6 @@ TQString KAddrBookExternal::expandDistributionList( const TQString& listName ) TDEABC::Resource* KAddrBookExternal::selectResourceForSaving( TDEABC::AddressBook *addressBook ) { -#if KDE_IS_VERSION(3,4,89) // This ugly hack will be removed in 4.0 while ( !addressBook->loadingHasFinished() ) { TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); @@ -263,7 +259,7 @@ TDEABC::Resource* KAddrBookExternal::selectResourceForSaving( TDEABC::AddressBoo // use sleep here to reduce cpu usage usleep( 100 ); } -#endif + // End of ugly hack // Select a resource TQPtrList tdeabcResources = addressBook->resources(); -- cgit v1.2.3