summaryrefslogtreecommitdiffstats
path: root/libkdepim/addresseeselector.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 /libkdepim/addresseeselector.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 'libkdepim/addresseeselector.cpp')
-rw-r--r--libkdepim/addresseeselector.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/libkdepim/addresseeselector.cpp b/libkdepim/addresseeselector.cpp
index 65e34985..c7e37817 100644
--- a/libkdepim/addresseeselector.cpp
+++ b/libkdepim/addresseeselector.cpp
@@ -79,7 +79,7 @@ TQStringList AddresseeSelector::AddressBookManager::titles() const
void AddresseeSelector::AddressBookManager::addResource( KABC::Resource *resource )
{
- if ( mResources.find( resource ) == mResources.end() )
+ if ( mResources.tqfind( resource ) == mResources.end() )
mResources.append( resource );
}
@@ -184,12 +184,12 @@ uint SelectionItem::index() const
}
-class SelectionViewItem : public QListViewItem
+class SelectionViewItem : public TQListViewItem
{
public:
- SelectionViewItem( TQListView *parent, Selection *selection,
+ SelectionViewItem( TQListView *tqparent, Selection *selection,
SelectionItem *item )
- : TQListViewItem( parent, "" ), mSelection( selection ), mItem( item )
+ : TQListViewItem( tqparent, "" ), mSelection( selection ), mItem( item )
{
if ( mItem->distributionList() == 0 )
mIcon = mSelection->itemIcon( mItem->addressee(), mItem->index() );
@@ -205,7 +205,7 @@ class SelectionViewItem : public QListViewItem
else
return mSelection->distributionListText( mItem->distributionList() );
} else
- return TQString::null;
+ return TQString();
}
const TQPixmap* pixmap( int column ) const
@@ -224,8 +224,8 @@ class SelectionViewItem : public QListViewItem
TQPixmap mIcon;
};
-AddresseeSelector::AddresseeSelector( Selection *selection, TQWidget *parent, const char *name )
- : TQWidget( parent, name ), mSelection( selection ), mManager( 0 )
+AddresseeSelector::AddresseeSelector( Selection *selection, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), mSelection( selection ), mManager( 0 )
{
mMoveMapper = new TQSignalMapper( this );
mRemoveMapper = new TQSignalMapper( this );
@@ -303,7 +303,7 @@ void AddresseeSelector::initGUI()
mRemoveMapper->setMapping( listView, i );
TQVBoxLayout *buttonLayout = new TQVBoxLayout( this );
- buttonLayout->tqsetAlignment( Qt::AlignBottom );
+ buttonLayout->tqsetAlignment( TQt::AlignBottom );
tqlayout->addLayout( buttonLayout, row, 1 );
// move button
@@ -561,8 +561,8 @@ void AddresseeSelector::reloadAddressBook()
AddresseeSelectorDialog::AddresseeSelectorDialog( Selection *selection,
- TQWidget *parent, const char *name )
- : KDialogBase( Plain, "", Ok | Cancel, Ok, parent, name, true )
+ TQWidget *tqparent, const char *name )
+ : KDialogBase( Plain, "", Ok | Cancel, Ok, tqparent, name, true )
{
TQFrame *frame = plainPage();
TQVBoxLayout *tqlayout = new TQVBoxLayout( frame );