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 --- korganizer/kohelper.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'korganizer/kohelper.cpp') diff --git a/korganizer/kohelper.cpp b/korganizer/kohelper.cpp index 5c0b4ccb5..827279fe4 100644 --- a/korganizer/kohelper.cpp +++ b/korganizer/kohelper.cpp @@ -22,7 +22,7 @@ without including the source code for Qt in the source distribution. */ -#include +#include #include @@ -34,9 +34,9 @@ #include "koprefs.h" #include "kohelper.h" -QColor KOHelper::resourceColor( KCal::Calendar*calendar, KCal::Incidence*incidence ) +TQColor KOHelper::resourceColor( KCal::Calendar*calendar, KCal::Incidence*incidence ) { - QColor resourceColor = QColor(); //Default invalid color + TQColor resourceColor = TQColor(); //Default invalid color //FIXME: dynamic_cast are dirty, Better We implements interface to get the color // from the calendar KCal::CalendarResources *calendarResource = dynamic_cast( calendar ); @@ -45,14 +45,14 @@ QColor KOHelper::resourceColor( KCal::Calendar*calendar, KCal::Incidence*inciden KCal::ResourceCalendar *resourceCalendar = calendarResource->resource( incidence ); if( resourceCalendar ) { - QString identifier = resourceCalendar->identifier(); + TQString identifier = resourceCalendar->identifier(); resourceColor = *KOPrefs::instance()->resourceColor( identifier ); if ( !resourceCalendar->subresources().isEmpty() ) { identifier = resourceCalendar->subresourceIdentifier( incidence ); if ( identifier.isEmpty() ) identifier = resourceCalendar->identifier(); - QColor subrescolor( *KOPrefs::instance()->resourceColor( identifier ) ); + TQColor subrescolor( *KOPrefs::instance()->resourceColor( identifier ) ); if ( subrescolor.isValid() ) resourceColor = subrescolor; } @@ -63,16 +63,16 @@ QColor KOHelper::resourceColor( KCal::Calendar*calendar, KCal::Incidence*inciden return resourceColor; } -QString KOHelper::resourceLabel(KCal::Calendar * calendar, KCal::Incidence * incidence) +TQString KOHelper::resourceLabel(KCal::Calendar * calendar, KCal::Incidence * incidence) { KCal::CalendarResources *calendarResource = dynamic_cast( calendar ); if ( !calendarResource || ! incidence ) - return QString(); + return TQString(); KCal::ResourceCalendar *resourceCalendar = calendarResource->resource( incidence ); if( resourceCalendar ) { if ( !resourceCalendar->subresources().isEmpty() ) { - QString subRes = resourceCalendar->subresourceIdentifier( incidence ); + TQString subRes = resourceCalendar->subresourceIdentifier( incidence ); if ( subRes.isEmpty() ) return resourceCalendar->resourceName(); return resourceCalendar->labelForSubresource( subRes ); @@ -80,5 +80,5 @@ QString KOHelper::resourceLabel(KCal::Calendar * calendar, KCal::Incidence * inc return resourceCalendar->resourceName(); } - return QString(); + return TQString(); } -- cgit v1.2.1