diff options
Diffstat (limited to 'kaddressbook/views/kaddressbookiconview.cpp')
-rw-r--r-- | kaddressbook/views/kaddressbookiconview.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kaddressbook/views/kaddressbookiconview.cpp b/kaddressbook/views/kaddressbookiconview.cpp index 58b4a3409..16fe5cad0 100644 --- a/kaddressbook/views/kaddressbookiconview.cpp +++ b/kaddressbook/views/kaddressbookiconview.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 <tqapplication.h> @@ -42,9 +42,9 @@ class IconViewFactory : public ViewFactory { public: - KAddressBookView *view( KAB::Core *core, TQWidget *parent, const char *name ) + KAddressBookView *view( KAB::Core *core, TQWidget *tqparent, const char *name ) { - return new KAddressBookIconView( core, parent, name ); + return new KAddressBookIconView( core, tqparent, name ); } TQString type() const { return I18N_NOOP( "Icon" ); } @@ -59,8 +59,8 @@ extern "C" { } } -AddresseeIconView::AddresseeIconView( TQWidget *parent, const char *name ) - : KIconView( parent, name ) +AddresseeIconView::AddresseeIconView( TQWidget *tqparent, const char *name ) + : KIconView( tqparent, name ) { setSelectionMode( TQIconView::Extended ); setResizeMode( TQIconView::Adjust ); @@ -96,8 +96,8 @@ class AddresseeIconViewItem : public KIconViewItem { public: AddresseeIconViewItem( const KABC::Field::List&, KABC::AddressBook *doc, - const KABC::Addressee &addr, TQIconView *parent ) - : KIconViewItem( parent ), mDocument( doc ), mAddressee( addr ) + const KABC::Addressee &addr, TQIconView *tqparent ) + : KIconViewItem( tqparent ), mDocument( doc ), mAddressee( addr ) { refresh(); } @@ -106,7 +106,7 @@ class AddresseeIconViewItem : public KIconViewItem void refresh() { - mAddressee = mDocument->tqfindByUid( mAddressee.uid() ); + mAddressee = mDocument->findByUid( mAddressee.uid() ); if ( !mAddressee.isEmpty() ) setText( mAddressee.givenName() + " " + mAddressee.familyName() ); @@ -136,8 +136,8 @@ class AddresseeIconViewItem : public KIconViewItem KAddressBookIconView::KAddressBookIconView( KAB::Core *core, - TQWidget *parent, const char *name) - : KAddressBookView( core, parent, name ) + TQWidget *tqparent, const char *name) + : KAddressBookView( core, tqparent, name ) { TQVBoxLayout *tqlayout = new TQVBoxLayout( viewWidget() ); @@ -233,7 +233,7 @@ void KAddressBookIconView::refresh( const TQString &uid ) } } - refresh( TQString::null ); + refresh( TQString() ); } } @@ -291,7 +291,7 @@ void KAddressBookIconView::addresseeSelected() } if ( !found ) - emit selected( TQString::null ); + emit selected( TQString() ); } void KAddressBookIconView::rmbClicked( TQIconViewItem*, const TQPoint &point ) @@ -301,12 +301,12 @@ void KAddressBookIconView::rmbClicked( TQIconViewItem*, const TQPoint &point ) void KAddressBookIconView::scrollUp() { - TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Up, 0, 0 ) ); + TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Up, 0, 0 ) ); } void KAddressBookIconView::scrollDown() { - TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Down, 0, 0 ) ); + TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Down, 0, 0 ) ); } #include "kaddressbookiconview.moc" |