From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- kaddressbook/views/kaddressbooktableview.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kaddressbook/views/kaddressbooktableview.cpp') diff --git a/kaddressbook/views/kaddressbooktableview.cpp b/kaddressbook/views/kaddressbooktableview.cpp index 89caa0455..65bcd36cf 100644 --- a/kaddressbook/views/kaddressbooktableview.cpp +++ b/kaddressbook/views/kaddressbooktableview.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 @@ -61,9 +61,9 @@ class TableViewFactory : 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 KAddressBookTableView( core, parent, name ); + return new KAddressBookTableView( core, tqparent, name ); } TQString type() const { return I18N_NOOP( "Table" ); } @@ -71,10 +71,10 @@ class TableViewFactory : public ViewFactory TQString description() const { return i18n( "A listing of contacts in a table. Each cell of " "the table holds a field of the contact." ); } - ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *parent, + ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *tqparent, const char *name = 0 ) { - return new ConfigureTableViewWidget( ab, parent, name ); + return new ConfigureTableViewWidget( ab, tqparent, name ); } }; @@ -86,8 +86,8 @@ extern "C" { } KAddressBookTableView::KAddressBookTableView( KAB::Core *core, - TQWidget *parent, const char *name ) - : KAddressBookView( core, parent, name ) + TQWidget *tqparent, const char *name ) + : KAddressBookView( core, tqparent, name ) { mMainLayout = new TQVBoxLayout( viewWidget(), 2 ); @@ -262,7 +262,7 @@ void KAddressBookTableView::refresh( const TQString &uid ) return; } } - refresh( TQString::null ); + refresh( TQString() ); } } @@ -330,7 +330,7 @@ void KAddressBookTableView::addresseeSelected() } if ( !found ) - emit selected( TQString::null ); + emit selected( TQString() ); } void KAddressBookTableView::addresseeExecuted( TQListViewItem *item ) @@ -341,9 +341,9 @@ void KAddressBookTableView::addresseeExecuted( TQListViewItem *item ) if ( ceItem ) emit executed( ceItem->addressee().uid() ); else - emit executed( TQString::null ); + emit executed( TQString() ); } else { - emit executed( TQString::null ); + emit executed( TQString() ); } } @@ -372,12 +372,12 @@ void KAddressBookTableView::updatePresence( const TQString &uid ) void KAddressBookTableView::scrollUp() { - TQApplication::postEvent( mListView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Up, 0, 0 ) ); + TQApplication::postEvent( mListView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Up, 0, 0 ) ); } void KAddressBookTableView::scrollDown() { - TQApplication::postEvent( mListView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Down, 0, 0 ) ); + TQApplication::postEvent( mListView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Down, 0, 0 ) ); } -- cgit v1.2.1