Diffstat (limited to 'microkde/kcalendarsystemgregorian.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | microkde/kcalendarsystemgregorian.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/microkde/kcalendarsystemgregorian.cpp b/microkde/kcalendarsystemgregorian.cpp index 7c5b62a..cc12b9f 100644 --- a/microkde/kcalendarsystemgregorian.cpp +++ b/microkde/kcalendarsystemgregorian.cpp @@ -53,9 +53,9 @@ int KCalendarSystemGregorian::monthsInYear( const QDate & ) const } int KCalendarSystemGregorian::weeksInYear(int year) const { -#if QT_VERSION >= 300 +#if QT_VERSION >= 0x030000 QDate temp; temp.setYMD(year, 12, 31); // If the last day of the year is in the first week, we have to check the @@ -71,9 +71,9 @@ int KCalendarSystemGregorian::weeksInYear(int year) const int KCalendarSystemGregorian::weekNumber(const QDate& date, int * yearNum) const { -#if QT_VERSION >= 300 +#if QT_VERSION >= 0x030000 return date.weekNumber(yearNum); #else return 1; #endif @@ -230,9 +230,9 @@ bool KCalendarSystemGregorian::setYMD(QDate & date, int y, int m, int d) const } QDate KCalendarSystemGregorian::addYears(const QDate & date, int nyears) const { -#if QT_VERSION >= 300 +#if QT_VERSION >= 0x030000 return date.addYears(nyears); #else int year = date.year() + nyears; int month = date.month(); @@ -244,9 +244,9 @@ QDate KCalendarSystemGregorian::addYears(const QDate & date, int nyears) const } QDate KCalendarSystemGregorian::addMonths(const QDate & date, int nmonths) const { -#if QT_VERSION >= 300 +#if QT_VERSION >= 0x030000 return date.addMonths(nmonths); #else int month = date.month(); int nyears; |