summaryrefslogtreecommitdiffstats
path: root/kaddressbook
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook')
-rw-r--r--kaddressbook/addresseditwidget.cpp23
-rw-r--r--kaddressbook/common/locationmap.cpp9
-rw-r--r--kaddressbook/searchmanager.cpp8
-rw-r--r--kaddressbook/viewmanager.cpp3
-rw-r--r--kaddressbook/views/contactlistview.cpp4
5 files changed, 0 insertions, 47 deletions
diff --git a/kaddressbook/addresseditwidget.cpp b/kaddressbook/addresseditwidget.cpp
index 173411f4..60b81820 100644
--- a/kaddressbook/addresseditwidget.cpp
+++ b/kaddressbook/addresseditwidget.cpp
@@ -221,35 +221,12 @@ void AddressEditWidget::updateAddressEdit()
if ( it != mAddressList.end() ) {
TDEABC::Address a = *it;
if ( !a.isEmpty() ) {
-#if TDE_VERSION >= 319
if ( a.type() & TDEABC::Address::Work && mAddressee.realName() != mAddressee.organization() ) {
mAddressField->setText( a.formattedAddress( mAddressee.realName(),
mAddressee.organization() ) );
} else {
mAddressField->setText( a.formattedAddress( mAddressee.realName() ) );
}
-#else
- TQString text;
- if ( !a.street().isEmpty() )
- text += a.street() + "\n";
-
- if ( !a.postOfficeBox().isEmpty() )
- text += a.postOfficeBox() + "\n";
-
- text += a.locality() + TQString(" ") + a.region();
-
- if ( !a.postalCode().isEmpty() )
- text += TQString(", ") + a.postalCode();
-
- text += "\n";
-
- if ( !a.country().isEmpty() )
- text += a.country() + "\n";
-
- text += a.extended();
-
- mAddressField->setText( text );
-#endif
}
}
diff --git a/kaddressbook/common/locationmap.cpp b/kaddressbook/common/locationmap.cpp
index 63ed10ac..8ef225cf 100644
--- a/kaddressbook/common/locationmap.cpp
+++ b/kaddressbook/common/locationmap.cpp
@@ -23,7 +23,6 @@
#include <tdeapplication.h>
#include <tdeconfig.h>
-#include <tdeversion.h>
#include <tdeglobal.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
@@ -78,19 +77,11 @@ TQString LocationMap::createUrl( const TDEABC::Address &addr )
return TQString();
}
-#if TDE_VERSION >= 319
return urlTemplate.replace( "%s", addr.street() ).
replace( "%r", addr.region() ).
replace( "%l", addr.locality() ).
replace( "%z", addr.postalCode() ).
replace( "%c", addr.countryToISO( addr.country() ) );
-#else
- return urlTemplate.replace( "%s", addr.street() ).
- replace( "%r", addr.region() ).
- replace( "%l", addr.locality() ).
- replace( "%z", addr.postalCode() ).
- replace( "%c", "" );
-#endif
}
#include "locationmap.moc"
diff --git a/kaddressbook/searchmanager.cpp b/kaddressbook/searchmanager.cpp
index 350a4ffd..a6861d7a 100644
--- a/kaddressbook/searchmanager.cpp
+++ b/kaddressbook/searchmanager.cpp
@@ -23,7 +23,6 @@
#include <config.h> // FOR TDEPIM_NEW_DISTRLISTS
#include <tdeabc/addresseelist.h>
-#include <tdeversion.h>
#include "searchmanager.h"
@@ -44,18 +43,11 @@ void SearchManager::search( const TQString &pattern, const TDEABC::Field::List &
TDEABC::Addressee::List allContacts;
mContacts.clear();
-#if TDE_VERSION >= 319
TDEABC::AddresseeList list( mAddressBook->allAddressees() );
if ( !fields.isEmpty() )
list.sortByField( fields.first() );
allContacts = list;
-#else
- TDEABC::AddressBook::ConstIterator abIt( mAddressBook->begin() );
- const TDEABC::AddressBook::ConstIterator abEndIt( mAddressBook->end() );
- for ( ; abIt != abEndIt; ++abIt )
- allContacts.append( *abIt );
-#endif
#ifdef TDEPIM_NEW_DISTRLISTS
// Extract distribution lists from allContacts
diff --git a/kaddressbook/viewmanager.cpp b/kaddressbook/viewmanager.cpp
index 125b95c7..eaeb0ae1 100644
--- a/kaddressbook/viewmanager.cpp
+++ b/kaddressbook/viewmanager.cpp
@@ -31,7 +31,6 @@
#include <tdeactionclasses.h>
#include <tdeconfig.h>
#include <kdebug.h>
-#include <tdeversion.h>
#include <kiconloader.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
@@ -565,9 +564,7 @@ int ViewManager::filterPosition( const TQString &name ) const
void ViewManager::initActions()
{
mActionSelectView = new TDESelectAction( i18n( "Select View" ), 0, mCore->actionCollection(), "select_view" );
-#if TDE_VERSION >= 309
mActionSelectView->setMenuAccelsEnabled( false );
-#endif
connect( mActionSelectView, TQ_SIGNAL( activated( const TQString& ) ),
TQ_SLOT( setActiveView( const TQString& ) ) );
diff --git a/kaddressbook/views/contactlistview.cpp b/kaddressbook/views/contactlistview.cpp
index b23f415c..4c4906c7 100644
--- a/kaddressbook/views/contactlistview.cpp
+++ b/kaddressbook/views/contactlistview.cpp
@@ -167,7 +167,6 @@ TQString ContactListViewItem::key(int column, bool ascending) const
if ( column >= parentListView->columns() )
return TQString();
-#if TDE_VERSION >= 319
Q_UNUSED( ascending )
if ( parentListView->showIM() ) {
// in this case, one column is reserved for IM presence
@@ -185,9 +184,6 @@ TQString ContactListViewItem::key(int column, bool ascending) const
}
else
return mFields[ column ]->sortKey( mAddressee );
-#else
- return TQListViewItem::key( column, ascending ).lower();
-#endif
}
void ContactListViewItem::paintCell(TQPainter * p,