[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/libkdenetwork
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2003-01-06 22:24:06
[Download RAW message or body]

CVS commit by mutz: 

compile with 3_1_BRANCH and no, I don't wanna hear another "why?"...


  M +7 -0      kmime_util.cpp   1.19


--- kdenetwork/libkdenetwork/kmime_util.cpp  #1.18:1.19
@@ -20,5 +20,8 @@
 #include <klocale.h>
 #include <kcharsets.h>
+#include <kdeversion.h>
+#if KDE_VERSION >=320
 #include <kcalendarsystem.h>
+#endif
 
 #include <qtextcodec.h>
@@ -731,5 +734,9 @@ DateFormatter::fancy(time_t otime) const
              old.date().dayOfYear() == weekday.date().dayOfYear() )
           return i18n( "1. weekday, 2. time", "%1 %2" ).
+#if KDE_VERSION >= 320
             arg( locale->calendar()->weekDayName( old.date() ) ).
+#else
+            arg( locale->weekDayName( old.date().dayOfWeek() ) ).
+#endif
             arg( locale->formatTime( old.time(), true) );
       }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic