summaryrefslogtreecommitdiffstats
path: root/korganizer/kohelper.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/kohelper.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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();
}