summaryrefslogtreecommitdiffstats
path: root/kaddressbook/viewmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/viewmanager.cpp')
-rw-r--r--kaddressbook/viewmanager.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kaddressbook/viewmanager.cpp b/kaddressbook/viewmanager.cpp
index 46eb653b5..e6d046450 100644
--- a/kaddressbook/viewmanager.cpp
+++ b/kaddressbook/viewmanager.cpp
@@ -17,8 +17,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include <tqfile.h>
@@ -49,8 +49,8 @@
#include "viewmanager.h"
-ViewManager::ViewManager( KAB::Core *core, TQWidget *parent, const char *name )
- : TQWidget( parent, name ), mCore( core ), mActiveView( 0 ),
+ViewManager::ViewManager( KAB::Core *core, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), mCore( core ), mActiveView( 0 ),
mFilterSelectionWidget( 0 )
{
initGUI();
@@ -133,7 +133,7 @@ KABC::Addressee::List ViewManager::selectedAddressees() const
const TQStringList uids = selectedUids();
TQStringList::ConstIterator it;
for ( it = uids.begin(); it != uids.end(); ++it ) {
- KABC::Addressee addr = mCore->addressBook()->tqfindByUid( *it );
+ KABC::Addressee addr = mCore->addressBook()->findByUid( *it );
if ( !addr.isEmpty() )
list.append( addr );
}
@@ -195,7 +195,7 @@ void ViewManager::setActiveView( const TQString &name )
// we can't find it, it means it hasn't been instantiated, so we will
// create it on demand.
- view = mViewDict.find( name );
+ view = mViewDict.tqfind( name );
// Check if we found the view. If we didn't, then we need to create it
if ( view == 0 ) {
@@ -205,7 +205,7 @@ void ViewManager::setActiveView( const TQString &name )
kdDebug(5720) << "ViewManager::setActiveView: creating view - " << name << endl;
- ViewFactory *factory = mViewFactoryDict.find( type );
+ ViewFactory *factory = mViewFactoryDict.tqfind( type );
if ( factory )
view = factory->view( mCore, mViewWidgetStack );
@@ -265,7 +265,7 @@ void ViewManager::editView()
if ( !mActiveView )
return;
- ViewFactory *factory = mViewFactoryDict.find( mActiveView->type() );
+ ViewFactory *factory = mViewFactoryDict.tqfind( mActiveView->type() );
ViewConfigureWidget *wdg = 0;
if ( factory ) {
@@ -436,7 +436,7 @@ void ViewManager::dropped( TQDropEvent *e )
} else if ( KVCardDrag::decode( e, list ) ) {
KABC::Addressee::List::ConstIterator it;
for ( it = list.begin(); it != list.end(); ++it ) {
- KABC::Addressee a = mCore->addressBook()->tqfindByUid( (*it).uid() );
+ KABC::Addressee a = mCore->addressBook()->findByUid( (*it).uid() );
if ( a.isEmpty() ) { // not yet in address book
mCore->addressBook()->insertAddressee( *it );
emit modified();
@@ -459,7 +459,7 @@ void ViewManager::startDrag()
TQStringList::ConstIterator it;
for ( it = uidList.begin(); it != uidList.end(); ++it )
- addrList.append( mCore->addressBook()->tqfindByUid( *it ) );
+ addrList.append( mCore->addressBook()->findByUid( *it ) );
KMultipleDrag *drag = new KMultipleDrag( this );
@@ -519,7 +519,7 @@ void ViewManager::setActiveFilter( int index )
if ( mActiveView ) {
mActiveView->setFilter( currentFilter );
mActiveView->refresh();
- emit selected( TQString::null );
+ emit selected( TQString() );
}
}