From 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:50:21 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- korganizer/resourceview.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'korganizer/resourceview.cpp') diff --git a/korganizer/resourceview.cpp b/korganizer/resourceview.cpp index a4475a4c..322d6b63 100644 --- a/korganizer/resourceview.cpp +++ b/korganizer/resourceview.cpp @@ -44,7 +44,7 @@ #include #include -#include +#include #include #include #include @@ -70,12 +70,12 @@ static TQString labelFromSubResName( ResourceCalendar *resource, const TQString TQString label; if ( (int)reply > 1 ) { if( resource && !resource->resourceName().isEmpty() ) { - label = i18n( "My %1 (%2)" ).tqarg( subRes, resource->resourceName() ); + label = i18n( "My %1 (%2)" ).arg( subRes, resource->resourceName() ); } else { - label = i18n( "My %1" ).tqarg( subRes ); + label = i18n( "My %1" ).arg( subRes ); } } else { - label = i18n( "My %1" ).tqarg( subRes ); + label = i18n( "My %1" ).arg( subRes ); } return label; } @@ -238,18 +238,18 @@ void ResourceItem::setStandardResource( bool std ) { if ( mIsStandardResource != std ) { mIsStandardResource = std; - tqrepaint(); + repaint(); } } void ResourceItem::paintCell(TQPainter *p, const TQColorGroup &cg, - int column, int width, int tqalignment) + int column, int width, int alignment) { TQFont oldFont = p->font(); TQFont newFont = oldFont; newFont.setBold( mIsStandardResource && !mIsSubresource ); p->setFont( newFont ); - TQCheckListItem::paintCell( p, cg, column, width, tqalignment ); + TQCheckListItem::paintCell( p, cg, column, width, alignment ); p->setFont( oldFont ); /* TQColorGroup _cg = cg; if(!mResource) return; @@ -376,7 +376,7 @@ void ResourceView::addResource() if ( !item->resource()->addSubresource( folderName, parentId ) ) { KMessageBox::error( this, - i18n( "Unable to create subresource %1." ).tqarg( folderName ) ); + i18n( "Unable to create subresource %1." ).arg( folderName ) ); } return; } @@ -398,7 +398,7 @@ void ResourceView::addResource() if( !resource ) { KMessageBox::error( this, - i18n( "Unable to create resource of type %1." ).tqarg( type ) ); + i18n( "Unable to create resource of type %1." ).arg( type ) ); return; } @@ -414,7 +414,7 @@ void ResourceView::addResource() if ( resource->isActive() && ( !resource->open() || !resource->load() ) ) { // ### There is a resourceLoadError() signal declared in ResourceCalendar // but no subclass seems to make use of it. We could do better. - KMessageBox::error( this, i18n("Unable to create the resource.").tqarg( type ) ); + KMessageBox::error( this, i18n("Unable to create the resource.").arg( type ) ); success = false; } } @@ -573,7 +573,7 @@ void ResourceView::removeResource() i18n ("Failed to remove the subresource %1. The " "reason could be that it is a built-in one which cannot " "be removed, or that the removal of the underlying storage " - "folder failed.").tqarg( item->resource()->name() ) ); + "folder failed.").arg( item->resource()->name() ) ); return; } else { mCalendar->resourceManager()->remove( item->resource() ); @@ -632,7 +632,7 @@ void ResourceView::editResource() } else { KMessageBox::sorry( this, - i18n ("Cannot edit the subresource %1.").tqarg( item->resource()->name() ) ); + i18n ("Cannot edit the subresource %1.").arg( item->resource()->name() ) ); } } else { KRES::ConfigDialog dlg( this, TQString("calendar"), resource, "KRES::ConfigDialog" ); -- cgit v1.2.3