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/features/resourceselection.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/features/resourceselection.cpp')
-rw-r--r-- | kaddressbook/features/resourceselection.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kaddressbook/features/resourceselection.cpp b/kaddressbook/features/resourceselection.cpp index 59a3c1ee6..049f879b5 100644 --- a/kaddressbook/features/resourceselection.cpp +++ b/kaddressbook/features/resourceselection.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 <tqlayout.h> @@ -54,11 +54,11 @@ class AddressBookWrapper : public KABC::AddressBook } }; -class ResourceItem : public QCheckListItem +class ResourceItem : public TQCheckListItem { public: - ResourceItem( KListView *parent, KABC::Resource *resource ) - : TQCheckListItem( parent, resource->resourceName(), CheckBox ), + ResourceItem( KListView *tqparent, KABC::Resource *resource ) + : TQCheckListItem( tqparent, resource->resourceName(), CheckBox ), mResource( resource ), mChecked( false ), mIsSubresource( false ), mSubItemsCreated( false ), mResourceIdentifier() @@ -68,9 +68,9 @@ class ResourceItem : public QCheckListItem mChecked = isOn(); } - ResourceItem( KPIM::ResourceABC *resourceABC, ResourceItem* parent, + ResourceItem( KPIM::ResourceABC *resourceABC, ResourceItem* tqparent, const TQString& resourceIdent ) - : TQCheckListItem( parent, resourceABC->subresourceLabel( resourceIdent ), CheckBox ), + : TQCheckListItem( tqparent, resourceABC->subresourceLabel( resourceIdent ), CheckBox ), mResource( resourceABC ), mChecked( false ), mIsSubresource( true ), mSubItemsCreated( false ), mResourceIdentifier( resourceIdent ) @@ -134,8 +134,8 @@ void ResourceItem::stateChange( bool active ) //// -ResourceSelection::ResourceSelection( KAB::Core *core, TQWidget *parent, const char *name ) - : KAB::ExtensionWidget( core, parent, name ), mManager( 0 ) +ResourceSelection::ResourceSelection( KAB::Core *core, TQWidget *tqparent, const char *name ) + : KAB::ExtensionWidget( core, tqparent, name ), mManager( 0 ) { initGUI(); @@ -466,12 +466,12 @@ ResourceItem* ResourceSelection::selectedItem() const ResourceItem* ResourceSelection::findSubResourceItem( KPIM::ResourceABC *resource, const TQString &subResource ) { - TQListViewItemIterator parentIt( mListView ); - for ( ; *parentIt; ++parentIt ) { - if ( static_cast<ResourceItem*>(*parentIt)->resource() != resource ) + TQListViewItemIterator tqparentIt( mListView ); + for ( ; *tqparentIt; ++tqparentIt ) { + if ( static_cast<ResourceItem*>(*tqparentIt)->resource() != resource ) continue; - TQListViewItemIterator childIt( *parentIt ); + TQListViewItemIterator childIt( *tqparentIt ); for ( ; *childIt; ++childIt ) { ResourceItem *item = static_cast<ResourceItem*>(*childIt); if ( item->resourceIdentifier() == subResource ) @@ -520,9 +520,9 @@ void ResourceSelection::initGUI() class ResourceSelectionFactory : public KAB::ExtensionFactory { public: - KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *parent, const char *name ) + KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *tqparent, const char *name ) { - return new ResourceSelection( core, parent, name ); + return new ResourceSelection( core, tqparent, name ); } TQString identifier() const |