Rename KDE_VERSION to TDE_VERSION

pull/21/head
Timothy Pearson 13 years ago
parent 0953e163d4
commit c0fc75368b

@ -221,7 +221,7 @@ void AddressEditWidget::updateAddressEdit()
if ( it != mAddressList.end() ) { if ( it != mAddressList.end() ) {
KABC::Address a = *it; KABC::Address a = *it;
if ( !a.isEmpty() ) { if ( !a.isEmpty() ) {
#if KDE_VERSION >= 319 #if TDE_VERSION >= 319
if ( a.type() & KABC::Address::Work && mAddressee.realName() != mAddressee.organization() ) { if ( a.type() & KABC::Address::Work && mAddressee.realName() != mAddressee.organization() ) {
mAddressField->setText( a.formattedAddress( mAddressee.realName(), mAddressField->setText( a.formattedAddress( mAddressee.realName(),
mAddressee.organization() ) ); mAddressee.organization() ) );

@ -78,7 +78,7 @@ TQString LocationMap::createUrl( const KABC::Address &addr )
return TQString(); return TQString();
} }
#if KDE_VERSION >= 319 #if TDE_VERSION >= 319
return urlTemplate.replace( "%s", addr.street() ). return urlTemplate.replace( "%s", addr.street() ).
replace( "%r", addr.region() ). replace( "%r", addr.region() ).
replace( "%l", addr.locality() ). replace( "%l", addr.locality() ).

@ -44,7 +44,7 @@ void SearchManager::search( const TQString &pattern, const KABC::Field::List &fi
KABC::Addressee::List allContacts; KABC::Addressee::List allContacts;
mContacts.clear(); mContacts.clear();
#if KDE_VERSION >= 319 #if TDE_VERSION >= 319
KABC::AddresseeList list( mAddressBook->allAddressees() ); KABC::AddresseeList list( mAddressBook->allAddressees() );
if ( !fields.isEmpty() ) if ( !fields.isEmpty() )
list.sortByField( fields.first() ); list.sortByField( fields.first() );

@ -565,7 +565,7 @@ int ViewManager::filterPosition( const TQString &name ) const
void ViewManager::initActions() void ViewManager::initActions()
{ {
mActionSelectView = new KSelectAction( i18n( "Select View" ), 0, mCore->actionCollection(), "select_view" ); mActionSelectView = new KSelectAction( i18n( "Select View" ), 0, mCore->actionCollection(), "select_view" );
#if KDE_VERSION >= 309 #if TDE_VERSION >= 309
mActionSelectView->setMenuAccelsEnabled( false ); mActionSelectView->setMenuAccelsEnabled( false );
#endif #endif
connect( mActionSelectView, TQT_SIGNAL( activated( const TQString& ) ), connect( mActionSelectView, TQT_SIGNAL( activated( const TQString& ) ),

@ -167,7 +167,7 @@ TQString ContactListViewItem::key(int column, bool ascending) const
if ( column >= parentListView->columns() ) if ( column >= parentListView->columns() )
return TQString(); return TQString();
#if KDE_VERSION >= 319 #if TDE_VERSION >= 319
Q_UNUSED( ascending ) Q_UNUSED( ascending )
if ( parentListView->showIM() ) { if ( parentListView->showIM() ) {
// in this case, one column is reserved for IM presence // in this case, one column is reserved for IM presence

Loading…
Cancel
Save