summaryrefslogtreecommitdiffstats
path: root/kaddressbook/viewmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/viewmanager.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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() );
}
}