summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views/kaddressbookcardview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/views/kaddressbookcardview.cpp')
-rw-r--r--kaddressbook/views/kaddressbookcardview.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kaddressbook/views/kaddressbookcardview.cpp b/kaddressbook/views/kaddressbookcardview.cpp
index 2f0c859c..1c7f2806 100644
--- a/kaddressbook/views/kaddressbookcardview.cpp
+++ b/kaddressbook/views/kaddressbookcardview.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>
@@ -43,19 +43,19 @@
class CardViewFactory : 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 KAddressBookCardView( core, parent, name );
+ return new KAddressBookCardView( core, tqparent, name );
}
TQString type() const { return I18N_NOOP("Card"); }
TQString description() const { return i18n( "Rolodex style cards represent contacts." ); }
- ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *parent,
+ ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *tqparent,
const char *name = 0 )
{
- return new ConfigureCardViewWidget( ab, parent, name );
+ return new ConfigureCardViewWidget( ab, tqparent, name );
}
};
@@ -72,8 +72,8 @@ class AddresseeCardViewItem : public CardViewItem
AddresseeCardViewItem( const KABC::Field::List &fields,
bool showEmptyFields,
KABC::AddressBook *doc, const KABC::Addressee &addr,
- CardView *parent )
- : CardViewItem( parent, addr.realName() ),
+ CardView *tqparent )
+ : CardViewItem( tqparent, addr.realName() ),
mFields( fields ), mShowEmptyFields( showEmptyFields ),
mDocument( doc ), mAddressee( addr )
{
@@ -87,7 +87,7 @@ class AddresseeCardViewItem : public CardViewItem
void refresh()
{
- mAddressee = mDocument->tqfindByUid( mAddressee.uid() );
+ mAddressee = mDocument->findByUid( mAddressee.uid() );
if ( !mAddressee.isEmpty() ) {
clearFields();
@@ -116,8 +116,8 @@ class AddresseeCardViewItem : public CardViewItem
};
-AddresseeCardView::AddresseeCardView( TQWidget *parent, const char *name )
- : CardView( parent, name )
+AddresseeCardView::AddresseeCardView( TQWidget *tqparent, const char *name )
+ : CardView( tqparent, name )
{
setAcceptDrops( true );
}
@@ -144,8 +144,8 @@ void AddresseeCardView::startDrag()
KAddressBookCardView::KAddressBookCardView( KAB::Core *core,
- TQWidget *parent, const char *name )
- : KAddressBookView( core, parent, name )
+ TQWidget *tqparent, const char *name )
+ : KAddressBookView( core, tqparent, name )
{
mShowEmptyFields = false;
@@ -282,7 +282,7 @@ void KAddressBookCardView::refresh( const TQString &uid )
mCardView->viewport()->update();
// by default nothing is selected
- emit selected( TQString::null );
+ emit selected( TQString() );
} else {
// Try to find the one to refresh
bool found = false;
@@ -349,7 +349,7 @@ void KAddressBookCardView::addresseeSelected()
}
if ( !found )
- emit selected( TQString::null );
+ emit selected( TQString() );
}
void KAddressBookCardView::rmbClicked( CardViewItem*, const TQPoint &point )
@@ -359,12 +359,12 @@ void KAddressBookCardView::rmbClicked( CardViewItem*, const TQPoint &point )
void KAddressBookCardView::scrollUp()
{
- TQApplication::postEvent( mCardView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Up, 0, 0 ) );
+ TQApplication::postEvent( mCardView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Up, 0, 0 ) );
}
void KAddressBookCardView::scrollDown()
{
- TQApplication::postEvent( mCardView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Down, 0, 0 ) );
+ TQApplication::postEvent( mCardView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Down, 0, 0 ) );
}
#include "kaddressbookcardview.moc"