diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/views/kaddressbooktableview.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-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/kaddressbooktableview.cpp')
-rw-r--r-- | kaddressbook/views/kaddressbooktableview.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
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 <tqapplication.h> @@ -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 ) ); } |