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 /korganizer/resourceview.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 'korganizer/resourceview.cpp')
-rw-r--r-- | korganizer/resourceview.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/korganizer/resourceview.cpp b/korganizer/resourceview.cpp index 0f2d0e13f..7b00a4611 100644 --- a/korganizer/resourceview.cpp +++ b/korganizer/resourceview.cpp @@ -19,8 +19,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 "resourceview.h" @@ -96,9 +96,9 @@ ResourceViewFactory::ResourceViewFactory( CalendarResources *calendar, CalendarV { } -CalendarViewExtension *ResourceViewFactory::create( TQWidget *parent ) +CalendarViewExtension *ResourceViewFactory::create( TQWidget *tqparent ) { - mResourceView = new ResourceView( mCalendar, mCalendarView, parent ); + mResourceView = new ResourceView( mCalendar, mCalendarView, tqparent ); TQObject::connect( mResourceView, TQT_SIGNAL( resourcesChanged() ), mCalendarView, TQT_SLOT( resourcesChanged() ) ); @@ -127,10 +127,10 @@ ResourceView *ResourceViewFactory::resourceView() const } ResourceItem::ResourceItem( ResourceCalendar *resource, ResourceView *view, - KListView *parent ) - : TQCheckListItem( parent, resource->resourceName(), CheckBox ), + KListView *tqparent ) + : TQCheckListItem( tqparent, resource->resourceName(), CheckBox ), mResource( resource ), mResourceView( view ), mBlockStateChange( false ), - mIsSubresource( false ), mResourceIdentifier( TQString::null ), + mIsSubresource( false ), mResourceIdentifier( TQString() ), mSubItemsCreated( false ), mIsStandardResource( false ) { mResourceColor = TQColor(); @@ -164,8 +164,8 @@ void ResourceItem::createSubresourceItems() } ResourceItem::ResourceItem( ResourceCalendar *resource, const TQString &identifier, - const TQString &label, ResourceView *view, ResourceItem *parent ) - : TQCheckListItem( parent, label, CheckBox ), mResource( resource ), + const TQString &label, ResourceView *view, ResourceItem *tqparent ) + : TQCheckListItem( tqparent, label, CheckBox ), mResource( resource ), mResourceView( view ), mBlockStateChange( false ), mIsSubresource( true ), mSubItemsCreated( false ), mIsStandardResource( false ) { @@ -258,8 +258,8 @@ void ResourceItem::paintCell(TQPainter *p, const TQColorGroup &cg, ResourceView::ResourceView( CalendarResources *calendar, - CalendarView *view, TQWidget *parent, const char *name ) - : CalendarViewExtension( parent, name ), mCalendar( calendar ), mCalendarView( view ) + CalendarView *view, TQWidget *tqparent, const char *name ) + : CalendarViewExtension( tqparent, name ), mCalendar( calendar ), mCalendarView( view ) { TQBoxLayout *topLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); @@ -368,12 +368,12 @@ void ResourceView::addResource() if ( item && ( item->isSubresource() || item->resource()->canHaveSubresources() ) ) { const TQString folderName = KInputDialog::getText( i18n( "Add Subresource" ), - i18n( "Please enter a name for the new subresource" ), TQString::null, + i18n( "Please enter a name for the new subresource" ), TQString(), &ok, this ); if ( !ok ) return; - const TQString parentId = item->isSubresource() ? item->resourceIdentifier() : TQString:: null; - if ( !item->resource()->addSubresource( folderName, parentId ) ) { + const TQString tqparentId = item->isSubresource() ? item->resourceIdentifier() : TQString:: null; + if ( !item->resource()->addSubresource( folderName, tqparentId ) ) { KMessageBox::error( this, i18n( "<qt>Unable to create subresource <b>%1</b>.</qt>" ).arg( folderName ) ); @@ -508,7 +508,7 @@ void ResourceView::slotSubresourceRemoved( ResourceCalendar *resource, void ResourceView::closeResource( ResourceCalendar *resource ) { - if ( mResourcesToClose.find( resource ) >= 0 ) { + if ( mResourcesToClose.tqfind( resource ) >= 0 ) { resource->close(); mResourcesToClose.remove( resource ); } |