24 #include "kocorehelper.h"
26 #include "koglobals.h"
29 TQColor KOCoreHelper::categoryColor( const TQStringList &categories )
31 if ( categories.isEmpty() ) {
32 return KOPrefs::instance()->unsetCategoryColor();
36 TQString cat = categories.first();
39 bgColor = KOPrefs::instance()->unsetCategoryColor();
41 bgColor = *( KOPrefs::instance()->categoryColor( cat ) );
45 TQString KOCoreHelper::holidayString( const TQDate &dt )
47 return KOGlobals::self()->holiday( dt ).join( i18n( "delimiter for joining holiday names", ", " ) );
|