From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/resourcecalendar.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'libkcal/resourcecalendar.cpp') diff --git a/libkcal/resourcecalendar.cpp b/libkcal/resourcecalendar.cpp index 0b994a262..c008f0308 100644 --- a/libkcal/resourcecalendar.cpp +++ b/libkcal/resourcecalendar.cpp @@ -45,15 +45,15 @@ void ResourceCalendar::setResolveConflict( bool b) { mResolveConflict = b; } -QString ResourceCalendar::infoText() const +TQString ResourceCalendar::infoText() const { - QString txt; + TQString txt; txt += "" + resourceName() + ""; txt += "
"; KRES::Factory *factory = KRES::Factory::self( "calendar" ); - QString t = factory->typeName( type() ); + TQString t = factory->typeName( type() ); txt += i18n("Type: %1").arg( t ); addInfoText( txt ); @@ -68,7 +68,7 @@ void ResourceCalendar::writeConfig( KConfig* config ) KRES::Resource::writeConfig( config ); } -Incidence *ResourceCalendar::incidence( const QString &uid ) +Incidence *ResourceCalendar::incidence( const TQString &uid ) { Incidence *i = event( uid ); if ( i ) return i; @@ -95,16 +95,16 @@ Incidence::List ResourceCalendar::rawIncidences() return Calendar::mergeIncidenceList( rawEvents(), rawTodos(), rawJournals() ); } -void ResourceCalendar::setSubresourceActive( const QString &, bool ) +void ResourceCalendar::setSubresourceActive( const TQString &, bool ) { } -bool ResourceCalendar::addSubresource( const QString &, const QString & ) +bool ResourceCalendar::addSubresource( const TQString &, const TQString & ) { return true; } -bool ResourceCalendar::removeSubresource( const QString & ) +bool ResourceCalendar::removeSubresource( const TQString & ) { return true; } @@ -140,13 +140,13 @@ bool ResourceCalendar::load() return success; } -void ResourceCalendar::loadError( const QString &err ) +void ResourceCalendar::loadError( const TQString &err ) { kdDebug(5800) << "Error loading resource: " << err << endl; mReceivedLoadError = true; - QString msg = i18n("Error while loading %1.\n") .arg( resourceName() ); + TQString msg = i18n("Error while loading %1.\n") .arg( resourceName() ); if ( !err.isEmpty() ) { msg += err; } @@ -177,28 +177,28 @@ bool ResourceCalendar::doSave( Incidence * ) return doSave(); } -void ResourceCalendar::saveError( const QString &err ) +void ResourceCalendar::saveError( const TQString &err ) { kdDebug(5800) << "Error saving resource: " << err << endl; mReceivedSaveError = true; - QString msg = i18n("Error while saving %1.\n") .arg( resourceName() ); + TQString msg = i18n("Error while saving %1.\n") .arg( resourceName() ); if ( !err.isEmpty() ) { msg += err; } emit resourceSaveError( this, msg ); } -bool ResourceCalendar::setValue( const QString &key, const QString &value ) +bool ResourceCalendar::setValue( const TQString &key, const TQString &value ) { return false; } -QString ResourceCalendar::subresourceType( const QString &resource ) +TQString ResourceCalendar::subresourceType( const TQString &resource ) { Q_UNUSED( resource ); - return QString(); + return TQString(); } -- cgit v1.2.1