summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views/kaddressbookcardview.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/views/kaddressbookcardview.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/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"