summaryrefslogtreecommitdiffstats
path: root/korganizer/resourceview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/resourceview.cpp')
-rw-r--r--korganizer/resourceview.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/korganizer/resourceview.cpp b/korganizer/resourceview.cpp
index 6c0bda0fd..9058df869 100644
--- a/korganizer/resourceview.cpp
+++ b/korganizer/resourceview.cpp
@@ -83,7 +83,7 @@ static TQString labelFromSubResName( ResourceCalendar *resource, const TQString
static TQString labelFromIdentifier( ResourceCalendar *resource, const TQString &identifier )
{
TQString subResLabel;
- if ( identifier.tqcontains( "/.INBOX.directory/" ) ) { // my subresource
+ if ( identifier.contains( "/.INBOX.directory/" ) ) { // my subresource
TQString subResName = identifier;
subResName.remove( TQRegExp( "^.*/\\.INBOX\\.directory/" ) );
subResLabel = labelFromSubResName( resource, subResName );
@@ -391,7 +391,7 @@ void ResourceView::addResource()
return;
}
- TQString type = types[ descs.tqfindIndex( desc ) ];
+ TQString type = types[ descs.findIndex( desc ) ];
// Create new resource
ResourceCalendar *resource = manager->createResource( type );
@@ -477,7 +477,7 @@ void ResourceView::slotSubresourceAdded( ResourceCalendar *resource,
{
Q_UNUSED( type );
- TQListViewItem *lvitem = mListView->tqfindItem( resource->resourceName(), 0 );
+ TQListViewItem *lvitem = mListView->findItem( resource->resourceName(), 0 );
if ( !lvitem )
// Not found
return;
@@ -508,7 +508,7 @@ void ResourceView::slotSubresourceRemoved( ResourceCalendar *resource,
void ResourceView::closeResource( ResourceCalendar *resource )
{
- if ( mResourcesToClose.tqfind( resource ) >= 0 ) {
+ if ( mResourcesToClose.find( resource ) >= 0 ) {
resource->close();
mResourcesToClose.remove( resource );
}
@@ -595,7 +595,7 @@ void ResourceView::editResource()
if ( item->isSubresource() ) {
if ( resource->type() == "imap" || resource->type() == "scalix" ) {
TQString identifier = item->resourceIdentifier();
- if ( !identifier.tqcontains( "/.INBOX.directory/" ) ) {
+ if ( !identifier.contains( "/.INBOX.directory/" ) ) {
KMessageBox::sorry(
this,
i18n( "Cannot rename someone else's calendar folder." ) );
@@ -708,7 +708,7 @@ void ResourceView::contextMenuRequested ( TQListViewItem *lvitem, const TQPoint
if ( item->isSubresource() &&
( item->resource()->type() == "imap" || item->resource()->type() == "scalix" ) ) {
- if ( item->resourceIdentifier().tqcontains( "/.INBOX.directory/" ) ) {
+ if ( item->resourceIdentifier().contains( "/.INBOX.directory/" ) ) {
menu->insertItem( i18n("&Rename..."), this, TQT_SLOT( editResource() ) );
}
} else {