summaryrefslogtreecommitdiffstats
path: root/korganizer/kohelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kohelper.cpp')
-rw-r--r--korganizer/kohelper.cpp18
1 files changed, 9 insertions, 9 deletions
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 <qcolor.h>
+#include <tqcolor.h>
#include <kdebug.h>
@@ -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<KCal::CalendarResources*>( 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<KCal::CalendarResources*>( 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();
}