From 485a6b28e3be6437742852970fdd122ba071b726 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 24 Jan 2005 09:57:42 +0000 Subject: chaned qt version comparison --- (limited to 'microkde/kcalendarsystemgregorian.cpp') diff --git a/microkde/kcalendarsystemgregorian.cpp b/microkde/kcalendarsystemgregorian.cpp index 7c5b62a..cc12b9f 100644 --- a/microkde/kcalendarsystemgregorian.cpp +++ b/microkde/kcalendarsystemgregorian.cpp @@ -54,7 +54,7 @@ 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); @@ -72,7 +72,7 @@ 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; @@ -231,7 +231,7 @@ 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; @@ -245,7 +245,7 @@ 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(); -- cgit v0.9.0.2